Skip to content

Commit

Permalink
add [skip tests] and [skip scan] to skip CI stages
Browse files Browse the repository at this point in the history
also lets you define SKIP_TESTS and/or SKIP_SCAN in pipeline variables
to skip testing or scanning
  • Loading branch information
nvjmayo committed Nov 18, 2020
1 parent 76ddaef commit 7604033
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .nvidia-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,20 @@ build:

test:
stage: test
except:
variables:
- $CI_COMMIT_MESSAGE =~ /\[skip[ _-]tests?\]/i
- $SKIP_TESTS
script:
- *testdep_setup
- *test_action

scan:
stage: scan
except:
variables:
- $CI_COMMIT_MESSAGE =~ /\[skip[ _-]scan?\]/i
- $SKIP_SCAN
script:
- *builddep_setup
- *python_setup
Expand Down

0 comments on commit 7604033

Please sign in to comment.