Update '.drone.yml'

pull/78/head
Félix MIELCAREK 3 years ago
parent 5a83ec8676
commit 631a8aaa4c

@ -10,11 +10,20 @@ steps:
- flutter build - flutter build
- name: code-analysis - name: code-analysis
image: cirrusci/flutter:stable image: cirrusci/flutter:stable
environment: #hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-sonar
SONAR_TOKEN: environment:
from_secret: sonar_token SONAR_TOKEN:
settings: from_secret: sonar_token
sources: ./Sources commands:
commands: #- apk add zip unzip openjdk11 tree
- cd Sources/dafl_project_flutter - 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 ]
Loading…
Cancel
Save