Add .drone.yml
continuous-integration/drone/push Build is failing Details

pull/40/head
Emre KARTAL 2 years ago
parent 73cf66db55
commit 3563ba8d10

@ -0,0 +1,29 @@
kind: pipeline
type: docker
name: JustMusic
trigger:
event:
- push
steps:
- name: app-build
image: cirrusci/flutter:stable
commands:
- cd ./Sources/justMUSIC/
- flutter build apk
- name: code-analysis
image: cirrusci/flutter:stable
environment:
SONAR_TOKEN:
from_secret: SONAR_TOKEN
commands:
- export SONAR_SCANNER_VERSION=4.7.0.2747
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server"
- sonar-scanner -D sonar.projectKey=JustMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
depends_on: [ app-build ]
Loading…
Cancel
Save