diff --git a/.drone.yml b/.drone.yml index 8173181..30f3fb2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,4 +6,17 @@ image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest commands: - cd JokesApp - - npm install \ No newline at end of file + - npm install + + step : + - name : sonar + image : hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest + environment: + sonar_host: https://codefirst.iut.uca.fr/sonar/ + sonar_token: + from_secret: SECRET_SONAR_LOGIN + project_key: JokesApp + commands: + - cd JokesApp + - npm install + - sonar-scanner -Dsonar-projectkey=$${project_key} -Dsonar.sources=. -Dsonar.host.url=$${sonar_host} -Dsonar. login=$${sonar_token} \ No newline at end of file