From 631a8aaa4cc7077ba5819348ee7d656b4a18fd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 21:28:49 +0200 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 64ac063..6d8c183 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,11 +10,20 @@ steps: - flutter build - name: code-analysis - image: cirrusci/flutter:stable - environment: - SONAR_TOKEN: - from_secret: sonar_token - settings: - sources: ./Sources - commands: - - cd Sources/dafl_project_flutter + image: cirrusci/flutter:stable + #hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-sonar + environment: + SONAR_TOKEN: + from_secret: sonar_token + commands: + #- apk add zip unzip openjdk11 tree + - export SONAR_SCANNER_VERSION=4.7.0.2747 + - mkdir .sonar + - cd .sonar + - wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - unzip -o sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - cd sonar-scanner-$SONAR_SCANNER_VERSION-linux/ + - cd ../.. + - export SONAR_SCANNER_OPTS="-server" + - ./.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner -D sonar.projectKey=Passworld -D sonar.host.url=https://codefirst.iut.uca.fr/sonar -D sonar.login=$${SONAR_TOKEN} + depends_on: [ build-apk ] \ No newline at end of file