-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
59 lines (55 loc) · 1.28 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
kind: pipeline
type: docker
name: caseclass-evolution
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /tmp/cache
settings:
restore: true
mount:
- /root/.ivy2/cache
- /root/.coursier/cache
- /root/.sbt
- name: build
image: andyglow/sbt:latest
when:
branch: master
environment:
CODECOV_TOKEN:
from_secret: codecov_token
commands:
- sbt +clean +coverage +test
- sbt coverageAggregate
- wget -O .codecov https://codecov.io/bash
- chmod +x .codecov
- ./.codecov -X gcov -X coveragepy -X xcode -X gcovout
- name: notify
image: plugins/slack
when:
status: [ success, failure ]
settings:
webhook:
from_secret: slack_webhook_url
channel: builds
username: drone
link_names: true
template: >
{{#success build.status}}
{{repo.name}}: build {{build.number}} succeeded (spent {{since build.started}}). Good job.
{{else}}
{{repo.name}}: build {{build.number}} failed. Fix please. {{build.link}}
{{/success}}
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /tmp/cache
settings:
rebuild: true
mount:
- /root/.ivy2/cache
- /root/.coursier/cache
- /root/.sbt