-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
64 lines (56 loc) · 1.23 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
scireum_volumes: &scireum_volumes
- name: docker_socket
path: /var/run/docker.sock
- name: m2
path: /root/.m2
kind: pipeline
name: default
platform:
os: linux
arch: amd64
clone:
depth: 1
steps:
- name: compile
image: scireum/sirius-build-jdk18
commands:
- mvn clean compile
volumes: *scireum_volumes
when:
event:
- push
- name: test
image: scireum/sirius-build-jdk18
commands:
- mvn clean test
volumes: *scireum_volumes
when:
event:
- tag
- pull_request
- name: deploy
image: scireum/sirius-build-jdk18
commands:
- sed -i 's/DEVELOPMENT-SNAPSHOT/${DRONE_TAG}/g' pom.xml
- mvn clean deploy -DskipTests
volumes: *scireum_volumes
when:
event:
- tag
- name: sonarqube
image: scireum/sirius-build-jdk18
commands:
- sed -i 's/DEVELOPMENT-SNAPSHOT/${DRONE_TAG}/g' pom.xml
- "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test package sonar:sonar -Dsonar.projectKey=${DRONE_REPO_NAME}"
volumes: *scireum_volumes
when:
event:
- tag
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
- name: m2
host:
path: /root/.m2