Merge branch '111-setup-sonarqube-pipeline-for-development-branch' into 'dev'
Resolve "Setup SonarQube pipeline for development branch" Closes #111 See merge request sa4-2020/the-sanmarinoes/frontend!135
This commit is contained in:
commit
953b385f8b
3 changed files with 629 additions and 12 deletions
|
@ -3,6 +3,7 @@ image: node:latest
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
- code_quality
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
|
@ -24,6 +25,14 @@ testing_testing:
|
|||
- cd smart-hut
|
||||
- yarn test
|
||||
|
||||
sonar-scanner:
|
||||
stage: code_quality
|
||||
only:
|
||||
- dev
|
||||
script:
|
||||
- cd smart-hut
|
||||
- yarn sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.projectName=$CI_PROJECT_PATH_SLUG -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.exclusion=cypress -Dsonar.sources=src -Dsonar.javascript.file.suffixes=.js,.jsx -Dsonar.sourceEncoding=UTF-8 -Dsonar.scm.disabled=True
|
||||
|
||||
smartHut_deploy:
|
||||
stage: deploy
|
||||
tags:
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "2.0.1"
|
||||
"prettier": "2.0.1",
|
||||
"sonarqube-scanner": "^2.6.0"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue