liste-de-courses/.drone.yml
aminecmi 9446d097a3
All checks were successful
continuous-integration/drone Build is passing
JDK version should fix the issue.
2022-07-22 22:06:36 +02:00

22 lines
588 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: maven:3-jdk-11
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn test -B
- name: analyse
image: maven:3-jdk-11
failure: ignore
commands:
- echo $SONAR_HOST_URL
- echo $SONAR_LOGIN
- mvn clean verify sonar:sonar -Dsonar.projectKey=LDC -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
environment:
SONAR_HOST_URL:
from_secret: sonarScannerHostUrl
SONAR_LOGIN:
from_secret: sonarScannerLogin