Martin Polreich | 48ae3e1 | 2017-04-13 10:53:32 +0200 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 6 | - pip install PyYAML |
| 7 | - pip install virtualenv |
| 8 | - | |
| 9 | test -e Gemfile || cat <<EOF > Gemfile |
| 10 | source 'https://rubygems.org' |
| 11 | gem 'rake' |
| 12 | gem 'test-kitchen' |
| 13 | gem 'kitchen-docker' |
| 14 | gem 'kitchen-inspec' |
| 15 | gem 'inspec' |
Petr Michalec | 0d93a22 | 2017-05-03 08:29:47 +0200 | [diff] [blame] | 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git', :branch => 'master' |
Martin Polreich | 48ae3e1 | 2017-04-13 10:53:32 +0200 | [diff] [blame] | 17 | - bundle install |
| 18 | |
| 19 | env: |
| 20 | - PLATFORM=trevorj/salty-whales:xenial |
| 21 | |
| 22 | before_script: |
| 23 | - make test | tail |
| 24 | |
| 25 | script: |
| 26 | - test ! -e .kitchen.yml || bundle exec kitchen converge || true |
| 27 | - test ! -e .kitchen.yml || bundle exec kitchen verify |