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