Skip to content

Commit 81a9c9e

Browse files
GitLab: use needs to replace multiple test stages.
1 parent ce484e1 commit 81a9c9e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ variables:
2525
# Using multiple test stages to avoid running some things in parallel (see job notes).
2626
stages:
2727
- test
28-
- test-2
29-
- test-3
3028
- upload-to-internal
3129
- upload-to-central
3230
- package-api-docs
@@ -65,13 +63,13 @@ test:
6563

6664
test-windows:
6765
extends: .test-template
68-
stage: test-2
66+
needs: ["test"]
6967
tags: [ windows ]
7068
script: ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build
7169

7270
test-macos:
7371
extends: .test-template
74-
stage: test-2
72+
needs: ["test"]
7573
tags: [mac11+, x64]
7674
script: ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build
7775

@@ -87,19 +85,19 @@ test-macos:
8785
# Note: can not run these in parallel using a matrix configuration as Gradle would step over itself.
8886
test-jdk-8:
8987
extends: .test-asan-template
90-
stage: test-2
88+
needs: ["test"]
9189
variables:
9290
TEST_JDK: 8
9391

9492
test-jdk-16:
9593
extends: .test-asan-template
96-
stage: test-3
94+
needs: ["test-jdk-8"]
9795
variables:
9896
TEST_JDK: 16
9997

10098
test-jdk-x86:
10199
extends: .test-template
102-
stage: test-3
100+
needs: ["test-windows"]
103101
tags: [ windows ]
104102
variables:
105103
# TEST_WITH_JAVA_X86 makes objectbox-java-test use 32-bit java executable and therefore

0 commit comments

Comments
 (0)