blob: 11697ca5f695f69b54bec19de4f28a0a2222358d [file] [log] [blame]
Martin Polreich0c7f5672017-04-11 13:27:30 +02001sudo: 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'
16 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
17 - bundle install
18
19env:
Martin Polreich8961c752018-04-11 12:59:11 +020020 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=single
21 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=cluster
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=curator
23 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=single
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=cluster
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=curator
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=single
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=cluster
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=curator
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=client
32# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=single
33# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=cluster
34# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=curator
35# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client
36# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=single
37# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=cluster
38# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=curator
39# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=client
Martin Polreich0c7f5672017-04-11 13:27:30 +020040
41before_script:
42 - set -o pipefail
43 - make test | tail
44
45script:
Martin Polreichf25c6af2018-01-05 13:04:24 +010046 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
47 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich0c7f5672017-04-11 13:27:30 +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