Martin Polreich | 05a3658 | 2018-06-21 15:27:05 +0200 | [diff] [blame^] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Ivan Suzdal | 50a360f | 2018-06-04 16:07:41 +0400 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | install: |
| 9 | - pip install PyYAML |
| 10 | - pip install virtualenv |
| 11 | - | |
| 12 | test -e Gemfile || cat <<EOF > Gemfile |
| 13 | source 'https://rubygems.org' |
| 14 | gem 'rake' |
| 15 | gem 'test-kitchen' |
| 16 | gem 'kitchen-docker' |
| 17 | gem 'kitchen-inspec' |
| 18 | gem 'inspec' |
| 19 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 20 | - bundle install |
| 21 | |
| 22 | env: |
| 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=server |
| 26 | |
| 27 | before_script: |
| 28 | - set -o pipefail |
| 29 | - make test | tail |
| 30 | |
| 31 | script: |
| 32 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 33 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |