Skip to content

Commit 19ac6b4

Browse files
add flag for nondefault jvms and flaky tests
1 parent daaa1a5 commit 19ac6b4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.gitlab-ci.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ variables:
3131
PROFILE_TESTS:
3232
description: "Enable profiling of tests"
3333
value: "false"
34+
NON_DEFAULT_JVMS:
35+
description: "Enable tests on JVMs that are the default"
36+
value: "false"
37+
RUN_FLAKY_TESTS:
38+
description: "Enable flaky tests"
39+
value: "false"
3440

3541
.test_matrix: &test_matrix
3642
- testJvm: &test_jvms
@@ -498,7 +504,10 @@ test_flaky:
498504
CACHE_TYPE: "base"
499505
testJvm: "8"
500506
CONTINUE_ON_FAILURE: "true"
501-
rules: *master_only
507+
rules:
508+
- *master_only
509+
- if: $RUN_FLAKY_TESTS == "true"
510+
when: on_success
502511
parallel:
503512
matrix:
504513
- GRADLE_TARGET: [":baseTest", ":smokeTest", ":debuggerTest"]
@@ -514,7 +523,10 @@ test_flaky_inst:
514523
CACHE_TYPE: "inst"
515524
testJvm: "8"
516525
CONTINUE_ON_FAILURE: "true"
517-
rules: *master_only
526+
rules:
527+
- *master_only
528+
- if: $RUN_FLAKY_TESTS == "true"
529+
when: on_success
518530
parallel: 6
519531

520532
test_profiling:

0 commit comments

Comments
 (0)