|
|
@ -10,8 +10,8 @@ steps:
|
|
|
|
- name: sonar-analysis
|
|
|
|
- name: sonar-analysis
|
|
|
|
image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- yarn install
|
|
|
|
- npm run test:coverage
|
|
|
|
- yarn test:coverage
|
|
|
|
- ls ./coverage
|
|
|
|
- ls ./coverage
|
|
|
|
- sonar-scanner
|
|
|
|
- sonar-scanner
|
|
|
|
-Dsonar.projectKey=AD_multiplat
|
|
|
|
-Dsonar.projectKey=AD_multiplat
|
|
|
@ -19,7 +19,7 @@ steps:
|
|
|
|
-Dsonar.host.url=$${PLUGIN_SONAR_HOST}
|
|
|
|
-Dsonar.host.url=$${PLUGIN_SONAR_HOST}
|
|
|
|
-Dsonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
-Dsonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
|
|
|
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
|
|
|
-Dsonar.exclusions=**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts,**/lcov-report/**
|
|
|
|
-Dsonar.exclusions=**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts,**/lcov-report/**,**/constants.ts,config.ts,babel.config.ts
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
|
|
|
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
|
|
|
sonar_token:
|
|
|
|
sonar_token:
|
|
|
|