Petr Michalec | 579e64d | 2017-03-24 12:54:29 +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-vagrant' |
| 15 | gem 'kitchen-inspec' |
| 16 | gem 'inspec' |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 17 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 18 | - bundle install |
| 19 | |
| 20 | env: |
| 21 | matrix: |
| 22 | - SUITE=analytics |
| 23 | - SUITE=control |
| 24 | - SUITE=cluster |
| 25 | - SUITE=single |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 26 | - SUITE=tor |
| 27 | - SUITE=vrouter |
| 28 | - PLATFORM=trevorj/salty-whales:trusty SUITE=analytics |
| 29 | - PLATFORM=trevorj/salty-whales:trusty SUITE=control |
| 30 | - PLATFORM=trevorj/salty-whales:trusty SUITE=cluster |
| 31 | - PLATFORM=trevorj/salty-whales:trusty SUITE=single |
| 32 | - PLATFORM=trevorj/salty-whales:trusty SUITE=tor |
| 33 | - PLATFORM=trevorj/salty-whales:trusty SUITE=vrouter |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 34 | |
| 35 | before_script: |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 36 | - set -o pipefail |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 37 | - make test | tail |
| 38 | |
| 39 | script: |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 40 | - test ! -e .kitchen.yml || bundle exec kitchen converge $SUITE || true |
| 41 | - test ! -e .kitchen.yml || bundle exec kitchen verify $SUITE -t tests/integration |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 42 | |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 43 | notifications: |
| 44 | webhooks: |
| 45 | urls: |
| 46 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 47 | on_success: change # options: [always|never|change] default: always |
| 48 | on_failure: never # options: [always|never|change] default: always |
| 49 | on_start: never # options: [always|never|change] default: always |
| 50 | on_cancel: never # options: [always|never|change] default: always |
| 51 | on_error: never # options: [always|never|change] default: always |
| 52 | email: false |