forked from scalameta/scalafmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
59 lines (54 loc) · 1.25 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/cache
- /drone/.coursier-cache
- /drone/.sbt
- /drone/.git
when:
event: [push, pull_request, tag, deployment]
tests:
image: scalaplatform/scala:0.6
volumes:
- /platform:/keys
commands:
- git fetch --tags && git log | head -n 20
- ./bin/cleanup_cache.sh
- ./scalafmt --test
- sbt $CI_TEST
publish:
image: olafurpg/scalafix:0.3.0
pull: true
volumes:
- /platform:/keys
commands:
- ./bin/bintray.sh
when:
event: [push, tag]
branch: [master]
# Save folders in distributed cache
sftp_cache_rebuild:
image: plugins/sftp-cache
rebuild: true
mount:
- /drone/.ivy2/cache
- /drone/.coursier-cache
- /drone/.sbt
- /drone/.git
matrix:
include:
- CI_TEST: ci-fast
CI_SCALA_VERSION: 2.11.11
CI_PUBLISH: true
- CI_TEST: ci-fast
CI_SCALA_VERSION: 2.12.2
CI_PUBLISH: true
- CI_TEST: ci-sbt-scalafmt
CI_SCALA_VERSION: 2.12.2
- CI_TEST: ci-slow
CI_SCALA_VERSION: 2.11.11
- CI_TEST: ci-slow
CI_SCALA_VERSION: 2.12.2