From 4a4b998634a397faa07f4acab3e235e2918aed5e Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Wed, 10 May 2023 17:00:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Implement=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d598e5d --- /dev/null +++ b/.drone.yml @@ -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