👷 Implement CI

pull/1/head
Alexis Drai 2 years ago
parent f25136765a
commit 4a4b998634

@ -0,0 +1,23 @@
kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: sonar-analyses
image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest
commands:
- cd Source
- npm install
- npm run test
- ls ./test/coverage
- sonar-scanner -Dsonar.projectKey=AD_multiplat -Dsonar.sources=. -Dsonar.host.url=$${PLUGIN_SONAR_HOST}
-Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.javascript.lcov.reportPaths=./test/coverage/lcov.info
-Dsonar.exclusions=**/lcov-report/**
settings:
sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_token:
from_secret: SONAR_TOKEN
Loading…
Cancel
Save