Disable lints and tests for pipelines

This commit is contained in:
Salt 2021-08-01 14:55:25 -05:00
parent 56d240706d
commit ea38c0de82

View File

@ -40,16 +40,20 @@ after_script:
zerotier-cli leave "$ZEROTIER_NETWORK_ID"
Lint:
stage: lint
allow_failure: yes
interruptible: yes
stage: lint
except:
- pipelines
script:
- ansible-lint --version
- ansible-lint site.yml
Test:
interruptible: yes
stage: test
interruptible: yes
except:
- pipelines
script:
- ansible-playbook --skip-tags no-test -C site.yml --vault-password-file /vaultpw || error="$?"
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi