-
Notifications
You must be signed in to change notification settings - Fork 20
/
.drone.yml
95 lines (84 loc) · 2.12 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
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: 100
steps:
- name: compile
image: scireum/sirius-build-jdk22
commands:
- mvn clean compile
volumes: *scireum_volumes
when:
branch:
- master
event:
- push
- name: cron_unit_tests
image: scireum/sirius-build-jdk22
commands:
- mvn clean test
volumes: *scireum_volumes
when:
event:
- cron
- name: cron_report_failures
image: plugins/slack
settings:
webhook: https://memoio.com/endpoint/hook/4b17b22e54124c53ab2e550cf3311461cba7c66a1e3756fa8d17e7dc17a48dbb
channel: scireum-dev
when:
status:
- failure
event:
- cron
- name: test
image: scireum/sirius-build-jdk22
commands:
- mvn clean test -Dtest.excluded.groups=nightly
volumes: *scireum_volumes
when:
event:
- pull_request
- name: deploy
image: scireum/sirius-build-jdk22
commands:
- sed -i 's/DEVELOPMENT-SNAPSHOT/${DRONE_TAG}/g' pom.xml
- mvn clean deploy -DskipTests
volumes: *scireum_volumes
when:
event:
- tag
- name: notify-tag-build
image: plugins/slack
settings:
webhook: https://memoio.com/endpoint/hook/4b17b22e54124c53ab2e550cf3311461cba7c66a1e3756fa8d17e7dc17a48dbb
channel: scireum-dev
template: "A new version is available: **{{Repo.Name}}**: [{{Build.Tag}}](https://github.com/scireum/sirius-kernel/releases/tag/{{Build.Tag}})"
when:
event:
- tag
- name: sonar
image: scireum/sirius-build-jdk22
commands:
- sed -i 's/DEVELOPMENT-SNAPSHOT/${DRONE_TAG}/g' pom.xml
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test org.jacoco:jacoco-maven-plugin:report 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