Remove inline shell in YAML for vagrant-validate (#5386)
This commit is contained in:
parent
91b23caa19
commit
9bdf6b00cc
2 changed files with 9 additions and 3 deletions
|
@ -11,10 +11,10 @@ yamllint:
|
||||||
vagrant-validate:
|
vagrant-validate:
|
||||||
extends: .job
|
extends: .job
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
variables:
|
||||||
|
VAGRANT_VERSION: 2.2.4
|
||||||
script:
|
script:
|
||||||
- curl -sL https://releases.hashicorp.com/vagrant/2.2.4/vagrant_2.2.4_x86_64.deb -o /tmp/vagrant_2.2.4_x86_64.deb
|
- ./tests/scripts/vagrant-validate.sh
|
||||||
- dpkg -i /tmp/vagrant_2.2.4_x86_64.deb
|
|
||||||
- vagrant validate --ignore-provider
|
|
||||||
except: ['triggers', 'master']
|
except: ['triggers', 'master']
|
||||||
|
|
||||||
ansible-lint:
|
ansible-lint:
|
||||||
|
|
6
tests/scripts/vagrant-validate.sh
Executable file
6
tests/scripts/vagrant-validate.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
curl -sL "https://releases.hashicorp.com/vagrant/2.2.4/vagrant_${VAGRANT_VERSION}_x86_64.deb" -o "/tmp/vagrant_${VAGRANT_VERSION}_x86_64.deb"
|
||||||
|
dpkg -i "/tmp/vagrant_${VAGRANT_VERSION}_x86_64.deb"
|
||||||
|
vagrant validate --ignore-provider
|
Loading…
Reference in a new issue