-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
42 lines (38 loc) · 873 Bytes
/
.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
kind: pipeline
type: docker
name: default
steps:
- name: build
image: maven:3.6.3-jdk-11
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn test -B
- mvn package -DskipTests=true
trigger:
branch:
- develop
- master
- f-drone-coverage-plugin
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov-token
files:
- /drone/src/target/site/jacoco/jacoco.xml
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: slack-webhook
channel: drone
when:
status: [ success, failure ]
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files: /drone/src/target/theroomapp-*-SNAPSHOT.jar
when:
event: tag