From 0cd9e367638f87e6e08efe7015db65979849697d Mon Sep 17 00:00:00 2001 From: Maxence LANONE Date: Sun, 9 Apr 2023 23:36:50 +0200 Subject: [PATCH] Ajouter '.drone.yml' --- .drone.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..37766b8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,20 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: sonar-analyses + image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest + commands: + - npm install + - npm run test + - ls ./src/test/coverage + - sonar-scanner -X -Dsonar.projectKey=MeteoDeMaxEtPaul -Dsonar.sources=. -Dsonar.host.url=$${PLUGIN_SONAR_HOST} + -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.javascript.lcov.reportPaths=./Tests/coverage/lcov.info + -Dsonar.exclusions=**/lcov-report/** + + secrets: [ SECRET_SONAR_LOGIN ] + settings: + sonar_host: https://codefirst.iut.uca.fr/sonar/ + sonar_token: + from_secret: SECRET_SONAR_LOGIN \ No newline at end of file