Repository navigation
Expand file tree
/
Copy path.drone.yml
More file actions
70 lines (64 loc) · 1.88 KB
/
Copy path.drone.yml
File metadata and controls
70 lines (64 loc) · 1.88 KB
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
75B8
62
63
64
65
66
67
68
69
70
matrix:
SBT_RUN:
- sbt "+bridgeIntegration/cachedPublishLocal" \
"benchmarks/compile" \
"git status" \
"setupTests" \
"git status" \
"backend/test" \
"frontend/test"
SBT_PUBLISH:
- sbt "set pgpPublicRing in Global := file(\"/drone/.gnupg/pubring.asc\")" \
"set pgpSecretRing in Global := file(\"/drone/.gnupg/secring.asc\")" \
";backend/releaseEarly;frontend/releaseEarly;^sbtBloop/releaseEarly"
clone:
git:
image: plugins/git
tags: true
recursive: true
depth: 50
submodule_update_remote: true
submodule_override:
zinc: https://github.com/scalacenter/zinc.git
nailgun: https://github.com/scalacenter/nailgun.git
pipeline:
restore_cache:
image: appleboy/drone-sftp-cache
secrets: [ sftp_cache_username, sftp_cache_private_key, sftp_cache_server, sftp_cache_path ]
restore: true
mount:
- /drone/.ivy2/cache
- /drone/.coursier
- /drone/.sbt
build:
image: scalaplatform/scala:2.1
when:
branch: master
commands:
- git log | head -n 20
- ${SBT_RUN}
- ./bin/ci-clean-cache.sh
publish:
image: scalaplatform/scala:2.1
secrets: [ sonatype_user, sonatype_password, pgp_password ]
volumes:
- /scalacenter:/keys
when:
branch: master
event: [ push, tag, deployment ]
status: success
commands:
- git log | head -n 20
# I have no idea why this has to be done manually... TODO: inspect why.
- export DRONE_DIR="/drone"
- /usr/local/bin/setup_keys.sh
- ${SBT_PUBLISH}
- ./bin/ci-clean-cache.sh
rebuild_cache:
image: appleboy/drone-sftp-cache
secrets: [ sftp_cache_username, sftp_cache_private_key, sftp_cache_server, sftp_cache_path ]
rebuild: true
mount:
- /drone/.ivy2/cache
- /drone/.coursier
- /drone/.sbt