forked from scalameta/scalafmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
59 lines (53 loc) · 1.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
pipeline:
# Fetch folders from distributed cache
sftp_cache_restore:
image: plugins/sftp-cache
restore: true
mount:
- /drone/.ivy2
- /drone/.coursier-cache
- /drone/.sbt
- /drone/.git
tests_pr:
image: scalaplatform/scala:0.6
volumes:
- /platform:/keys
commands:
- ./scalafmt --test
- sbt $TEST
when:
event: pull_request
tests_merge:
image: scalaplatform/scala:0.6
volumes:
- /platform:/keys
commands:
- sbt $TEST
when:
event: push
branch: [master]
notify:
image: drillster/drone-email
host: smtp.mailgun.org
username: [email protected]
password: ${MAILGUN_PASSWORD}
from: [email protected]
recipients:
when:
event: push
branch: [master]
status: [changed, failure]
# Save folders in distributed cache
sftp_cache_rebuild:
image: plugins/sftp-cache
rebuild: true
mount:
- /drone/.ivy2
- /drone/.coursier-cache
- /drone/.sbt
- /drone/.git
matrix:
TEST:
- ci-fast
- ci-slow