Martin819 | 92294ff | 2017-02-17 23:52:17 +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' |
Petr Michalec | df75d68 | 2018-02-07 13:43:53 +0100 | [diff] [blame^] | 16 | gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 92294ff | 2017-02-17 23:52:17 +0100 | [diff] [blame] | 17 | - bundle install |
| 18 | |
| 19 | env: |
Petr Michalec | 97483e7 | 2018-01-09 12:04:24 +0100 | [diff] [blame] | 20 | |
Oleh Hryhorov | 7c5dfd3 | 2018-01-19 15:43:44 +0200 | [diff] [blame] | 21 | - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=control-default |
| 22 | - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=master-default |
| 23 | - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=minion-default |
| 24 | - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=minion-multi-master-failover |
| 25 | - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=control-default |
| 26 | - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=master-default |
| 27 | - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=minion-default |
| 28 | - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=minion-multi-master-failover |
| 29 | # TODO, once 18.04 LTS Bionic Beaver is released, rename trusty to bionic |
| 30 | - PLATFORM=trevorj/salty-whales:bionic-2017.7 SUITE=master-default |
| 31 | - PLATFORM=trevorj/salty-whales:bionic-2017.7 SUITE=minion-default |
Martin Polreich | fa2b636 | 2017-09-25 10:34:18 +0200 | [diff] [blame] | 32 | - PLATFORM=trevorj/salty-whales:trusty SUITE=control-default |
Petr Michalec | 97483e7 | 2018-01-09 12:04:24 +0100 | [diff] [blame] | 33 | - PLATFORM=trevorj/salty-whales:trusty SUITE=master-default |
| 34 | - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-default |
Martin Polreich | fa2b636 | 2017-09-25 10:34:18 +0200 | [diff] [blame] | 35 | - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-multi-master-failover |
Petr Michalec | 97483e7 | 2018-01-09 12:04:24 +0100 | [diff] [blame] | 36 | - PLATFORM=trevorj/salty-whales:xenial SUITE=control-default |
| 37 | - PLATFORM=trevorj/salty-whales:xenial SUITE=master-default |
| 38 | - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-default |
Martin Polreich | fa2b636 | 2017-09-25 10:34:18 +0200 | [diff] [blame] | 39 | - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-multi-master-failover |
Petr Michalec | 97483e7 | 2018-01-09 12:04:24 +0100 | [diff] [blame] | 40 | # TODO, once 18.04 LTS Bionic Beaver is released, rename trusty to bionic |
| 41 | - PLATFORM=trevorj/salty-whales:bionic SUITE=master-default |
| 42 | - PLATFORM=trevorj/salty-whales:bionic SUITE=minion-default |
Martin819 | 92294ff | 2017-02-17 23:52:17 +0100 | [diff] [blame] | 43 | |
| 44 | before_script: |
Martin Polreich | 6234fdf | 2017-03-28 17:19:48 +0200 | [diff] [blame] | 45 | - set -o pipefail |
Martin819 | 92294ff | 2017-02-17 23:52:17 +0100 | [diff] [blame] | 46 | - make test | tail |
| 47 | |
| 48 | script: |
Martin Polreich | fa2b636 | 2017-09-25 10:34:18 +0200 | [diff] [blame] | 49 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 50 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 6234fdf | 2017-03-28 17:19:48 +0200 | [diff] [blame] | 51 | |
| 52 | notifications: |
| 53 | webhooks: |
| 54 | urls: |
| 55 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 56 | on_success: change # options: [always|never|change] default: always |
| 57 | on_failure: never # options: [always|never|change] default: always |
| 58 | on_start: never # options: [always|never|change] default: always |
| 59 | on_cancel: never # options: [always|never|change] default: always |
| 60 | on_error: never # options: [always|never|change] default: always |
| 61 | email: false |