blob: 57426fafeff06f6613ccab27b942c17c791d3bc9 [file] [log] [blame]
Martin Polreichcfe11042018-06-21 15:28:19 +02001language: python
2python:
3- "2.7.13"
Martin Polreich48ae3e12017-04-13 10:53:32 +02004sudo: required
5services:
6 - docker
7
8install:
9 - pip install PyYAML
10 - pip install virtualenv
11 - |
12 test -e Gemfile || cat <<EOF > Gemfile
13 source 'https://rubygems.org'
14 gem 'rake'
15 gem 'test-kitchen'
16 gem 'kitchen-docker'
17 gem 'kitchen-inspec'
18 gem 'inspec'
Petr Michalec0d93a222017-05-03 08:29:47 +020019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git', :branch => 'master'
Martin Polreich48ae3e12017-04-13 10:53:32 +020020 - bundle install
21
22env:
Martin Polreich8cccf512018-04-06 15:20:57 +020023 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-compose
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-container
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=host-single
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-compose
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-container
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=host-single
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=client-compose
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=client-container
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=host-single
32# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-compose
33# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-container
34# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=host-single
35# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=client-compose
36# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=client-container
37# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=host-single
Martin Polreich48ae3e12017-04-13 10:53:32 +020038
39before_script:
40 - make test | tail
41
42script:
Martin Polreich73fe0212018-01-05 12:57:23 +010043 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
44 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichac9be642017-08-24 17:19:59 +020045
46notifications:
47 webhooks:
48 urls:
49 - https://webhooks.gitter.im/e/6123573504759330786b
50 on_success: change # options: [always|never|change] default: always
51 on_failure: never # options: [always|never|change] default: always
52 on_start: never # options: [always|never|change] default: always
53 on_cancel: never # options: [always|never|change] default: always
54 on_error: never # options: [always|never|change] default: always
55 email: false