Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
Petr Michalec | 6969322 | 2017-04-13 09:59:27 +0200 | [diff] [blame] | 5 | addons: |
| 6 | apt: |
| 7 | packages: |
| 8 | - apt-transport-https |
| 9 | |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 10 | install: |
| 11 | - pip install PyYAML |
| 12 | - pip install virtualenv |
| 13 | - | |
| 14 | test -e Gemfile || cat <<EOF > Gemfile |
| 15 | source 'https://rubygems.org' |
| 16 | gem 'rake' |
| 17 | gem 'test-kitchen' |
| 18 | gem 'kitchen-docker' |
| 19 | gem 'kitchen-inspec' |
| 20 | gem 'inspec' |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 21 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 22 | - bundle install |
| 23 | |
| 24 | env: |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 25 | - PLATFORM=trevorj/salty-whales:trusty |
| 26 | - PLATFORM=trevorj/salty-whales:xenial |
| 27 | |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 28 | |
| 29 | before_script: |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 30 | - set -o pipefail |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 31 | - make test | tail |
| 32 | |
| 33 | script: |
| 34 | - test ! -e .kitchen.yml || bundle exec kitchen converge || true |
| 35 | - test ! -e .kitchen.yml || bundle exec kitchen verify -t tests/integration |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 36 | |
| 37 | notifications: |
| 38 | webhooks: |
| 39 | urls: |
| 40 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 41 | on_success: change # options: [always|never|change] default: always |
| 42 | on_failure: never # options: [always|never|change] default: always |
| 43 | on_start: never # options: [always|never|change] default: always |
| 44 | on_cancel: never # options: [always|never|change] default: always |
| 45 | on_error: never # options: [always|never|change] default: always |
| 46 | email: false |