Skip to content

Commit 7604033

Browse files
committed
add [skip tests] and [skip scan] to skip CI stages
also lets you define SKIP_TESTS and/or SKIP_SCAN in pipeline variables to skip testing or scanning
1 parent 76ddaef commit 7604033

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.nvidia-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,20 @@ build:
109109

110110
test:
111111
stage: test
112+
except:
113+
variables:
114+
- $CI_COMMIT_MESSAGE =~ /\[skip[ _-]tests?\]/i
115+
- $SKIP_TESTS
112116
script:
113117
- *testdep_setup
114118
- *test_action
115119

116120
scan:
117121
stage: scan
122+
except:
123+
variables:
124+
- $CI_COMMIT_MESSAGE =~ /\[skip[ _-]scan?\]/i
125+
- $SKIP_SCAN
118126
script:
119127
- *builddep_setup
120128
- *python_setup

0 commit comments

Comments
 (0)