Repository navigation
Expand file tree
/
Copy path.drone.yml
More file actions
101 lines (92 loc) · 2.87 KB
/
Copy path.drone.yml
File metadata and controls
101 lines (92 loc) · 2.87 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<
A73D
/div>
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# We publishLocal the maven plugin instead of compile to check the maven plugin integration
matrix:
SBT_RUN:
- sbt "benchmarks/compile" \
"frontend/integrationSetUpBloop" \
"backend/test" \
"frontend/test" \
"docs/makeSite"
SBT_PUBLISH:
- sbt "set pgpPublicRing in Global := file(\"/drone/.gnupg/pubring.asc\")" \
"set pgpSecretRing in Global := file(\"/drone/.gnupg/secring.asc\")" \
"docs/ghpagesPushSite" \
"releaseBloop"
SBT_RELEASE:
- sbt "frontend/updateHomebrewFormula" \
"frontend/githubRelease"
clone:
git:
image: plugins/git
tags: true
# We clone the submodules ourselves
recursive: false
depth: 50
pipeline:
clone:
image: plugins/git
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
commands:
- ./bin/ci-clone.sh
restore_cache:
image: appleboy/drone-sftp-cache
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
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: scalacenter/scala-docs:1.1
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
commands:
- export DRONE_DIR="/drone"
- git log | head -n 20
- ./bin/add-coursier.sh
- . bin/detect-community-build.sh # We need to source it for the env variable to be exported
- ${SBT_RUN}; ./bin/ci-clean-cache.sh
publish:
image: scalacenter/scala-docs:1.1
secrets: [ sonatype_user, sonatype_password, pgp_password, bintray_user, bintray_pass, bloopoid_private_key ]
volumes:
- /scalacenter:/keys
when:
ref: [ refs/heads/master, refs/tags/* ]
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"
- ./bin/add-coursier.sh
- /usr/local/bin/setup_keys.sh
- ./bin/ci-setup-bloopoid-keys.sh
- ${SBT_PUBLISH}
- ./bin/ci-clean-cache.sh
release:
image: scalacenter/scala-docs:1.1
secrets: [ bloopoid_github_token ]
volumes:
- /scalacenter:/keys
when:
ref: [ refs/heads/master, refs/tags/* ]
event: [ tag ]
status: success
commands:
- export DRONE_DIR="/drone"
- ./bin/add-coursier.sh
- echo "oauth = $BLOOPOID_GITHUB_TOKEN" > ~/.github
- ${SBT_RELEASE}
rebuild_cache:
image: appleboy/drone-sftp-cache
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
secrets: [ sftp_cache_username, sftp_cache_private_key, sftp_cache_server, sftp_cache_path ]
rebuild: true
mount:
- /drone/.ivy2/cache
- /drone/.coursier
- /drone/.sbt