Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is passing Details

SQLite
Lucas DELANIER 2 years ago
parent 52d227c9b6
commit be8265e0e1

@ -1,30 +1,19 @@
kind: pipeline
ttype: docker
type: docker
name: ShakeAndCraft
trigger:
event:
- push
event:
- push
steps:
- name: install-unzip
image: alpine
commands:
- apk add --no-cache unzip
- name: install-sonar-scanner
image: gradle:jdk11
commands:
- curl -sSLo /tmp/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip
- unzip -q /tmp/sonar-scanner-cli.zip -d /opt/sonar-scanner
- export PATH=$PATH:/opt/sonar-scanner/sonar-scanner-4.5.0.2216-linux/bin
- name: sonarqube
image: openjdk:latest
- name: code-analysis
image: openjdk:8-jdk
environment:
SONAR_TOKEN:
from_secret: SONAR_TOKEN
SONAR_HOST_URL: "https://your-sonarqube-url.com"
settings:
sources: ./ShakeAndCraft/
sources: ./src/
commands:
- export SONAR_SCANNER_VERSION=4.7.0.2747
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux

Loading…
Cancel
Save