forked from scalacenter/bloop
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.drone.yml
More file actions
293 lines (278 loc) · 10.1 KB
/
.drone.yml
File metadata and controls
293 lines (278 loc) · 10.1 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
# We publishLocal the maven plugin instead of compile to check the maven plugin integration
# Only test sbt-bloop 1.x because of bug in `^`
matrix:
TEST_BLOOP:
- bin/sbt-ci.sh \
"show version" \
"benchmarks/compile" \
"jsonConfig210/test" \
"jsonConfig211/test" \
"jsonConfig212/test" \
"millBloop/compile" \
"mavenBloop/compile" \
"gradleBloop211/compile" \
"gradleBloop212/compile" \
"show schemaVersion" \
"sbtBloop013/publishLocal" \
"sbtBloop10/publishLocal" \
"frontend/testOnly bloop.ScalaVersionsSpec" \
"backend/test" \
"jsBridge06/test" \
"jsBridge10/test" \
"jsBridge06/publishLocal" \
"jsBridge10/publishLocal" \
"frontend/runMain bloop.util.CommandsDocGenerator --test" \
"frontend/runMain bloop.util.CommandsDocGenerator --out ../docs/cli-reference.md" \
"frontend/testOnly -bloop.ScalaVersionsSpec" \
"frontend/it:run" \
"gradleBloop212/test" \
"docs/run"
TEST_BLOOP_JDK11:
- bin/sbt-ci.sh \
"show version" \
"benchmarks/compile" \
"jsonConfig210/test" \
"jsonConfig211/test" \
"jsonConfig212/test" \
"millBloop/compile" \
"mavenBloop/compile" \
"sbtBloop013/publishLocal" \
"sbtBloop10/publishLocal" \
"frontend/testOnly bloop.ScalaVersionsSpec" \
"backend/test" \
"jsBridge10/test" \
"jsBridge06/publishLocal" \
"jsBridge10/publishLocal" \
"frontend/testOnly -bloop.ScalaVersionsSpec"
TEST_BLOOP_NATIVE:
- bin/sbt-ci.sh \
"nativeBridge03/test" \
"nativeBridge04/test" \
"nativeBridge03/publishLocal" \
"nativeBridge04/publishLocal"
RUN_COMMUNITY_BUILD_EXTRA:
- bin/sbt-ci.sh \
"sbtBloop013/publishLocal" \
"sbtBloop10/publishLocal" \
"frontend/it:run"
RUN_BENCHMARKS_AND_SCRIPTED:
- bin/sbt-ci.sh \
"install" \
"launcher/test" \
"sbtBloop10Shaded/publishLocal" \
"sbtBloop10/scripted" \
"benchmarks/jmh:run .*HotBloopBenchmark.* -wi 0 -i 1 -f1 -t1 -p project=with-tests -p projectName=with-tests"
PUBLISH_ARTIFACTS:
- bin/sbt-ci-publish.sh \
"show version" \
"set pgpPublicRing in Global := file(\"/drone/.gnupg/pubring.asc\")" \
"set pgpSecretRing in Global := file(\"/drone/.gnupg/secring.asc\")" \
"releaseBloop" \
"docs/docusaurusPublishGhpages"
UPDATE_GITHUB_AND_INSTALLERS:
- bin/sbt-ci.sh \
"frontend/updateHomebrewFormula" \
"frontend/updateScoopFormula" \
"frontend/updateArchPackage" \
"frontend/githubRelease"
OS:
- windows
- linux
OPS:
- basic
- community-build
- jdk11
- extra
clone:
git:
image: plugins/git
tags: true
# We clone the submodules ourselves
recursive: false
pipeline:
clone:
image: plugins/git
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
commands:
- ./bin/ci-clone.sh
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- /drone/.ivy2/cache
- /drone/.ivy2/local
- /drone/.coursier
- /drone/.gradle
- /drone/.sbt
- /drone/.buildpress
- /drone/.dodo
- ./frontend/src/test/resources/simple-build/bloop-config
- ./frontend/src/test/resources/simple-build/target/generation-cache-file
- ./frontend/src/test/resources/compiler-plugin-whitelist/bloop-config
- ./frontend/src/test/resources/compiler-plugin-whitelist/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scalajs-0.6/bloop-config
- ./frontend/src/test/resources/cross-test-build-scalajs-0.6/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scalajs-1.0/bloop-config
- ./frontend/src/test/resources/cross-test-build-scalajs-1.0/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scala-native-0.3/bloop-config
- ./frontend/src/test/resources/cross-test-build-scala-native-0.3/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scala-native-0.4/bloop-config
- ./frontend/src/test/resources/cross-test-build-scala-native-0.4/target/generation-cache-file
volumes:
- /cache:/cache
cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME ]
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
build:
image: scalacenter/scala-docs:1.4
group: build
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: basic
commands:
- export DRONE_DIR="/drone"
- git log --oneline --graph | head -n 20
- . bin/set-up-community-build-infra.sh # Source it because it exports variables
- . bin/detect-community-build.sh # Source it because it exports variables
- touch ~/.profile
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- curl -o- -L https://yarnpkg.com/install.sh | bash
- yarn --help
- ${TEST_BLOOP}
- ${TEST_BLOOP_NATIVE}
- . bin/check-good-practices.sh # Check that good practices in the repo hold
build-jdk11:
image: eed3si9n/scala-docs:1.6-M2
group: build
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: jdk11
commands:
- export JAVA_HOME="/usr/lib/jvm/jdk11/bin"
- export PATH="$JAVA_HOME:$PATH"
- java -version
- export DRONE_DIR="/drone"
- git log --oneline --graph | head -n 20
- . bin/set-up-community-build-infra.sh # Source it because it exports variables
- . bin/detect-community-build.sh # Source it because it exports variables
- ${TEST_BLOOP_JDK11}
- . bin/check-good-practices.sh # Check that good practices in the repo hold
run_benchmarks_scripted:
image: scalacenter/scala-docs:1.4
group: build
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: extra
commands:
- export DRONE_DIR="/drone"
- . bin/set-up-community-build-infra.sh # Source it because it exports variables
- git log --oneline --graph | head -n 20
- ${RUN_BENCHMARKS_AND_SCRIPTED}
# run_community_pipelined:
# image: scalacenter/scala-docs:1.4
# group: build
# when:
# ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
# matrix:
# OS: linux
# OPS: community-build
# commands:
# - export DRONE_DIR="/drone"
# - export PIPELINE_COMMUNITY_BUILD="true"
# - . bin/set-up-community-build-infra.sh # Source it because it exports variables
# - git log --oneline --graph | head -n 20
# - . bin/detect-community-build.sh # Source it because it exports variables
# - ${RUN_COMMUNITY_BUILD_EXTRA}
build_windows:
group: build
image: scalacenter/scala-docs:1.4
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: windows
OPS: basic
secrets: [ bloop_jenkins_token ]
commands:
- ./bin/stream-jenkins-log.sh "bloop:$BLOOP_JENKINS_TOKEN"
publish:
image: scalacenter/scala-docs:1.4
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
matrix:
OS: linux
OPS: basic
commands:
- git log --oneline --graph | head -n 20
# I have no idea why this has to be done manually... TODO: inspect why.
- export DRONE_DIR="/drone"
- . bin/set-up-community-build-infra.sh # Source it because it exports variables
- /usr/local/bin/setup_keys.sh
- . bin/ci-setup-bloopoid-keys.sh
- touch ~/.profile
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- curl -o- -L https://yarnpkg.com/install.sh | bash
- yarn --help
- git status # Print to see what may be polluting the git state
- ${PUBLISH_ARTIFACTS}
release:
image: scalacenter/scala-docs:1.4
secrets: [ bloopoid_github_token, bloopoid_private_key ]
volumes:
- /scalacenter:/keys
when:
ref: [ refs/heads/master, refs/tags/* ]
event: [ tag ]
status: success
matrix:
OS: linux
OPS: basic
commands:
- export DRONE_DIR="/drone"
- git status
- . bin/set-up-community-build-infra.sh # Source it because it exports variables
- . bin/ci-setup-bloopoid-keys.sh
- echo "oauth = $BLOOPOID_GITHUB_TOKEN" > ~/.github
- ${UPDATE_GITHUB_AND_INSTALLERS}
rebuild-cache:
image: drillster/drone-volume-cache
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: basic
rebuild: true
mount:
- /drone/.ivy2/cache
- /drone/.ivy2/local
- /drone/.coursier
- /drone/.gradle
- /drone/.sbt
- /drone/.dodo
- /drone/.buildpress
- ./frontend/src/test/resources/cross-test-build-scalajs-0.6/bloop-config
- ./frontend/src/test/resources/cross-test-build-scalajs-0.6/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scalajs-1.0/bloop-config
- ./frontend/src/test/resources/cross-test-build-scalajs-1.0/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scala-native-0.3/bloop-config
- ./frontend/src/test/resources/cross-test-build-scala-native-0.3/target/generation-cache-file
- ./frontend/src/test/resources/cross-test-build-scala-native-0.4/bloop-config
- ./frontend/src/test/resources/cross-test-build-scala-native-0.4/target/generation-cache-file
volumes:
- /cache:/cache
cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME ]