You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PassWorld/.drone.yml

35 lines
1.1 KiB

kind: pipeline
type: docker
name: Passworld
trigger:
event:
- push
branch:
- master
steps:
- name: build-apk
image: cirrusci/flutter:stable
commands:
- flutter build apk
- curl -F "file=@./build/app/outputs/flutter-apk/app-release.apk" https://api.anonfiles.com/upload -o link.txt
- echo "$(cat link.txt)"
- name: code-analysis
image: cirrusci/flutter:stable
environment:
SONAR_TOKEN:
from_secret: sonar_token
commands:
- export SONAR_SCANNER_VERSION=4.7.0.2747
- mkdir .sonar
- cd .sonar
- curl -V
- 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 ]