Petr Michalec | fc1801e | 2017-03-10 10:30:26 +0100 | [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' |
Martin Polreich | 04493d3 | 2017-03-28 16:50:07 +0200 | [diff] [blame] | 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Petr Michalec | fc1801e | 2017-03-10 10:30:26 +0100 | [diff] [blame] | 17 | - bundle install |
| 18 | |
| 19 | env: |
Martin Polreich | 5ac43ce | 2018-01-05 13:08:15 +0100 | [diff] [blame^] | 20 | - PLATFORM=trevorj/salty-whales:trusty SUITE=server-cluster |
| 21 | - PLATFORM=trevorj/salty-whales:xenial SUITE=server-cluster |
| 22 | - PLATFORM=trevorj/salty-whales:trusty SUITE=server-plugin-dirs |
| 23 | - PLATFORM=trevorj/salty-whales:xenial SUITE=server-plugin-dirs |
| 24 | - PLATFORM=trevorj/salty-whales:trusty SUITE=server-single |
| 25 | - PLATFORM=trevorj/salty-whales:xenial SUITE=server-single |
Petr Michalec | fc1801e | 2017-03-10 10:30:26 +0100 | [diff] [blame] | 26 | |
Martin Polreich | 04493d3 | 2017-03-28 16:50:07 +0200 | [diff] [blame] | 27 | |
Petr Michalec | fc1801e | 2017-03-10 10:30:26 +0100 | [diff] [blame] | 28 | before_script: |
Martin Polreich | 04493d3 | 2017-03-28 16:50:07 +0200 | [diff] [blame] | 29 | - set -o pipefail |
| 30 | - make test | tail |
Petr Michalec | fc1801e | 2017-03-10 10:30:26 +0100 | [diff] [blame] | 31 | |
| 32 | script: |
Martin Polreich | 5ac43ce | 2018-01-05 13:08:15 +0100 | [diff] [blame^] | 33 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 34 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 04493d3 | 2017-03-28 16:50:07 +0200 | [diff] [blame] | 35 | |
| 36 | notifications: |
| 37 | webhooks: |
| 38 | urls: |
| 39 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 40 | on_success: change # options: [always|never|change] default: always |
| 41 | on_failure: never # options: [always|never|change] default: always |
| 42 | on_start: never # options: [always|never|change] default: always |
| 43 | on_cancel: never # options: [always|never|change] default: always |
| 44 | on_error: never # options: [always|never|change] default: always |
| 45 | email: false |