HidekoBot/.drone.yml
Beatrice DellacĂ  4124ea5207
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
Test DroneCI update
2023-01-14 23:18:26 +01:00

29 lines
705 B
YAML

kind: pipeline
name: default
trigger:
branch:
- main
steps:
- name: build
image: maven:3-eclipse-temurin-16
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- find
- mvn javadoc:javadoc
- find
- mvn test -B
- find
- name: code-analysis
image: maven:3-eclipse-temurin-16
commands:
- mvn sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
environment:
SONAR_PROJECT_KEY:
from_secret: sonar_project_key
SONAR_INSTANCE_URL:
from_secret: sonar_instance_url
SONAR_LOGIN_KEY:
from_secret: sonar_login_key