Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
Petr Michalec | 6969322 | 2017-04-13 09:59:27 +0200 | [diff] [blame] | 5 | addons: |
| 6 | apt: |
| 7 | packages: |
| 8 | - apt-transport-https |
| 9 | |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 10 | install: |
| 11 | - pip install PyYAML |
| 12 | - pip install virtualenv |
| 13 | - | |
| 14 | test -e Gemfile || cat <<EOF > Gemfile |
| 15 | source 'https://rubygems.org' |
| 16 | gem 'rake' |
| 17 | gem 'test-kitchen' |
| 18 | gem 'kitchen-docker' |
| 19 | gem 'kitchen-inspec' |
| 20 | gem 'inspec' |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 21 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 22 | - bundle install |
| 23 | |
| 24 | env: |
Jakub Josef | 495245a | 2018-03-05 15:41:01 +0100 | [diff] [blame] | 25 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=network |
| 26 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=network |
| 27 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=storage |
| 28 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=storage |
| 29 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=system |
| 30 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=system |
| 31 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=network |
| 32 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=system |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 33 | |
| 34 | before_script: |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 35 | - set -o pipefail |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 36 | - make test | tail |
| 37 | |
| 38 | script: |
Martin Polreich | fcee6e4 | 2018-01-05 13:22:16 +0100 | [diff] [blame] | 39 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 40 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | f0d157b | 2017-03-28 16:43:40 +0200 | [diff] [blame] | 41 | |
| 42 | notifications: |
| 43 | webhooks: |
| 44 | urls: |
| 45 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 46 | on_success: change # options: [always|never|change] default: always |
| 47 | on_failure: never # options: [always|never|change] default: always |
| 48 | on_start: never # options: [always|never|change] default: always |
| 49 | on_cancel: never # options: [always|never|change] default: always |
| 50 | on_error: never # options: [always|never|change] default: always |
| 51 | email: false |