blob: 52b0e80f298be249c6eb2e8ead50f5416b6f642f [file] [log] [blame]
Martin81992294ff2017-02-17 23:52:17 +01001sudo: required
2services:
3 - docker
4
5install:
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 Michalecdf75d682018-02-07 13:43:53 +010016 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81992294ff2017-02-17 23:52:17 +010017 - bundle install
18
19env:
Martin Polreich73309292018-04-25 15:55:36 +020020 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=control-default
21 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-default
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=minion-default
23 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=minion-multi-master-failover
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=control-default
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-default
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=minion-default
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=minion-multi-master-failover
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=control-default
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=master-default
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=minion-default
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=minion-multi-master-failover
32# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=control-default
33# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-default
34# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=minion-default
35# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=minion-multi-master-failover
36# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=control-default
37# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=master-default
38# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=minion-default
39# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=minion-multi-master-failover
Martin81992294ff2017-02-17 23:52:17 +010040
41before_script:
Martin Polreich6234fdf2017-03-28 17:19:48 +020042 - set -o pipefail
Martin81992294ff2017-02-17 23:52:17 +010043 - make test | tail
44
45script:
Martin Polreichfa2b6362017-09-25 10:34:18 +020046 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
47 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich6234fdf2017-03-28 17:19:48 +020048
49notifications:
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