Disable lints and tests for pipelines
This commit is contained in:
parent
56d240706d
commit
ea38c0de82
@ -40,16 +40,20 @@ after_script:
|
|||||||
zerotier-cli leave "$ZEROTIER_NETWORK_ID"
|
zerotier-cli leave "$ZEROTIER_NETWORK_ID"
|
||||||
|
|
||||||
Lint:
|
Lint:
|
||||||
|
stage: lint
|
||||||
allow_failure: yes
|
allow_failure: yes
|
||||||
interruptible: yes
|
interruptible: yes
|
||||||
stage: lint
|
except:
|
||||||
|
- pipelines
|
||||||
script:
|
script:
|
||||||
- ansible-lint --version
|
- ansible-lint --version
|
||||||
- ansible-lint site.yml
|
- ansible-lint site.yml
|
||||||
|
|
||||||
Test:
|
Test:
|
||||||
interruptible: yes
|
|
||||||
stage: test
|
stage: test
|
||||||
|
interruptible: yes
|
||||||
|
except:
|
||||||
|
- pipelines
|
||||||
script:
|
script:
|
||||||
- ansible-playbook --skip-tags no-test -C site.yml --vault-password-file /vaultpw || error="$?"
|
- 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
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user