forked from scalacenter/bloop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
165 lines (153 loc) · 4.4 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
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
# 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 \
"benchmarks/compile" \
"jsonConfig210/test" \
"jsonConfig211/test" \
"jsonConfig212/test" \
"millBloop/compile" \
"mavenBloop/compile" \
"gradleBloop211/compile" \
"gradleBloop212/compile" \
"frontend/integrationSetUpBloop" \
"backend/test" \
"nativeBridge/test" \
"jsBridge06/test" \
"jsBridge10/test" \
"frontend/test" \
"gradleBloop212/test" \
"docs/makeSite"
RUN_BENCHMARKS_AND_SCRIPTED:
- bin/sbt-ci.sh \
"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 \
"set pgpPublicRing in Global := file(\"/drone/.gnupg/pubring.asc\")" \
"set pgpSecretRing in Global := file(\"/drone/.gnupg/secring.asc\")" \
"docs/ghpagesPushSite" \
"releaseBloop"
RELEASE_GITHUB_BREW:
- bin/sbt-ci.sh \
"frontend/updateHomebrewFormula" \
"frontend/githubRelease"
OS:
- windows
- linux
OPS:
- basic
- extra
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 ]
matrix:
OS: linux
commands:
- ./bin/ci-clone.sh
restore_cache:
image: appleboy/drone-sftp-cache
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
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.3
group: build
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: basic
commands:
- export DRONE_DIR="/drone"
- git log | head -n 20
- . bin/detect-community-build.sh # We need to source it for the env variable to be exported
- ${TEST_BLOOP}
run_benchmarks_scripted:
image: scalacenter/scala-docs:1.3
group: build
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: extra
commands:
- export DRONE_DIR="/drone"
- git log | head -n 20
- ${RUN_BENCHMARKS_AND_SCRIPTED}
build_windows:
group: build
image: scalacenter/scala-docs:1.0
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.3
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 | 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
- ./bin/ci-setup-bloopoid-keys.sh
- ${PUBLISH_ARTIFACTS}
release:
image: scalacenter/scala-docs:1.3
secrets: [ bloopoid_github_token ]
volumes:
- /scalacenter:/keys
when:
ref: [ refs/heads/master, refs/tags/* ]
event: [ tag ]
status: success
matrix:
OS: linux
OPS: basic
commands:
- export DRONE_DIR="/drone"
- echo "oauth = $BLOOPOID_GITHUB_TOKEN" > ~/.github
- ${RELEASE_GITHUB_BREW}
rebuild_cache:
image: appleboy/drone-sftp-cache
when:
ref: [ refs/heads/master, refs/tags/*, refs/pull/*/head ]
matrix:
OS: linux
OPS: basic
secrets: [ sftp_cache_username, sftp_cache_private_key, sftp_cache_server, sftp_cache_path ]
rebuild: true
mount:
- /drone/.ivy2/cache
- /drone/.coursier
- /drone/.sbt