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