Skip to content

Commit e3b7ca4

Browse files
committed
Restore parallel CI test execution (Drone 1.x)
1 parent 437e0a5 commit e3b7ca4

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.drone.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ steps:
1313
- name: git
1414
pull: default
1515
image: plugins/git
16-
settings:
1716

1817
- name: clone
1918
pull: default
2019
image: plugins/git
20+
depends_on: [ git ]
2121
commands:
2222
- if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then
2323
git config user.email "dotty.bot@epfl.ch";
@@ -28,41 +28,37 @@ steps:
2828
- name: test
2929
pull: default
3030
image: lampepfl/dotty:2019-04-22
31+
depends_on: [ clone ]
3132
commands:
3233
- cp -R . /tmp/1/ && cd /tmp/1/
3334
- ./project/scripts/sbt ";compile ;test"
3435
- ./project/scripts/cmdTests
35-
settings:
36-
group: test
3736

3837
- name: test_bootstrapped
3938
pull: default
4039
image: lampepfl/dotty:2019-04-22
40+
depends_on: [ clone ]
4141
commands:
4242
- cp -R . /tmp/2/ && cd /tmp/2/
4343
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test; dotty-semanticdb/compile; dotty-semanticdb/test:compile;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test"
4444
- ./project/scripts/bootstrapCmdTests
45-
settings:
46-
group: test
4745

4846
- name: community_build
4947
pull: default
5048
image: lampepfl/dotty:2019-04-22
49+
depends_on: [ clone ]
5150
commands:
5251
- cp -R . /tmp/3/ && cd /tmp/3/
5352
- git submodule update --init --recursive --jobs 7
5453
- ./project/scripts/sbt community-build/test
55-
settings:
56-
group: test
5754

5855
- name: test_sbt
5956
pull: default
6057
image: lampepfl/dotty:2019-04-22
58+
depends_on: [ clone ]
6159
commands:
6260
- cp -R . /tmp/4/ && cd /tmp/4/
6361
- ./project/scripts/sbt sbt-dotty/scripted
64-
settings:
65-
group: test
6662
when:
6763
event:
6864
- tag
@@ -71,12 +67,11 @@ steps:
7167
- name: test_java11
7268
pull: default
7369
image: lampepfl/dotty:2019-04-22
70+
depends_on: [ clone ]
7471
commands:
7572
- export PATH="/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH"
7673
- cp -R . /tmp/6/ && cd /tmp/6/
7774
- ./project/scripts/sbt ";compile ;test"
78-
settings:
79-
group: test
8075
when:
8176
event:
8277
- push
@@ -86,6 +81,11 @@ steps:
8681
- name: documentation
8782
pull: default
8883
image: lampepfl/dotty:2019-04-22
84+
depends_on:
85+
- test
86+
- test_bootstrapped
87+
- community_build
88+
- test_java11
8989
commands:
9090
- ./project/scripts/genDocs
9191
environment:
@@ -100,6 +100,12 @@ steps:
100100
- name: publish_nightly
101101
pull: default
102102
image: lampepfl/dotty:2019-04-22
103+
depends_on:
104+
- test
105+
- test_bootstrapped
106+
- community_build
107+
- test_sbt
108+
- test_java11
103109
commands:
104110
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
105111
environment:
@@ -121,6 +127,12 @@ steps:
121127
- name: publish_release
122128
pull: default
123129
image: lampepfl/dotty:2019-04-22
130+
depends_on:
131+
- test
132+
- test_bootstrapped
133+
- community_build
134+
- test_sbt
135+
- test_java11
124136
commands:
125137
- ./project/scripts/sbt dist-bootstrapped/packArchive
126138
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
@@ -141,6 +153,7 @@ steps:
141153
- name: github_release
142154
pull: default
143155
image: plugins/github-release
156+
depends_on: [ publish_release ]
144157
settings:
145158
checksum:
146159
- sha256
@@ -157,6 +170,12 @@ steps:
157170
- name: publish_sbt_release
158171
pull: default
159172
image: lampepfl/dotty:2019-04-22
173+
depends_on:
174+
- test
175+
- test_bootstrapped
176+
- community_build
177+
- test_sbt
178+
- test_java11
160179
commands:
161180
- ./project/scripts/sbtPublish ";sbt-dotty/publishSigned ;sonatypeRelease"
162181
environment:

0 commit comments

Comments
 (0)