Martin Polreich | 2ebe40e | 2017-03-30 14:51:08 +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' |
| 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 17 | - bundle install |
| 18 | |
| 19 | env: |
Martin Polreich | 0f49d8c | 2018-04-18 10:53:14 +0200 | [diff] [blame] | 20 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client |
| 21 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=cluster |
| 22 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=single |
| 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=cluster |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=single |
| 26 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=client |
| 27 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=cluster |
| 28 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=single |
| 29 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client |
| 30 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=cluster |
| 31 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=single |
| 32 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=client |
| 33 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=cluster |
| 34 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=single |
Martin Polreich | 2ebe40e | 2017-03-30 14:51:08 +0200 | [diff] [blame] | 35 | |
| 36 | before_script: |
| 37 | - set -o pipefail |
| 38 | - make test | tail |
| 39 | |
| 40 | script: |
Martin Polreich | 5dc4197 | 2018-01-05 13:09:42 +0100 | [diff] [blame] | 41 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 42 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 2ebe40e | 2017-03-30 14:51:08 +0200 | [diff] [blame] | 43 | |
| 44 | notifications: |
| 45 | webhooks: |
| 46 | urls: |
| 47 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 48 | on_success: change # options: [always|never|change] default: always |
| 49 | on_failure: never # options: [always|never|change] default: always |
| 50 | on_start: never # options: [always|never|change] default: always |
| 51 | on_cancel: never # options: [always|never|change] default: always |
| 52 | on_error: never # options: [always|never|change] default: always |
| 53 | email: false |