HidekoBot/.drone.yml

29 lines
705 B
YAML
Raw Normal View History

2022-08-25 22:14:48 +02:00
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
2023-01-14 23:27:50 +01:00
- find
2022-08-26 16:26:52 +02:00
- mvn javadoc:javadoc
2023-01-14 23:27:50 +01:00
- find
2022-08-25 22:14:48 +02:00
- mvn test -B
2023-01-14 23:27:50 +01:00
- find
2023-01-14 21:49:47 +01:00
- name: code-analysis
2023-01-14 23:27:50 +01:00
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