blob: a01ab1acf6db4952c1d09c3d4c8257dee178191d [file] [log] [blame]
Filip Pytloun72cd3972018-01-18 13:40:40 +01001sudo: required
2services:
3 - docker
4
Petr Michalec62b84152018-01-18 14:15:02 +01005addons:
6 apt:
7 packages:
8 - apt-transport-https
9
Filip Pytloun72cd3972018-01-18 13:40:40 +010010install:
Filip Pytloun72cd3972018-01-18 13:40:40 +010011 - pip install PyYAML
12 - pip install virtualenv
Filip Pytloun72cd3972018-01-18 13:40:40 +010013 - |
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'
Petr Michalec62b84152018-01-18 14:15:02 +010021 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Filip Pytloun72cd3972018-01-18 13:40:40 +010022 - bundle install
23
24env:
Petr Michaleceac55cf2018-05-31 10:06:09 +020025 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-stable
28 - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7
29 - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-stable
30 - PLATFORM=epcim/salt:saltstack-centos-7-salt-2017.7
31 - PLATFORM=epcim/salt:saltstack-centos-7-salt-stable
Filip Pytloun72cd3972018-01-18 13:40:40 +010032
33before_script:
34 - set -o pipefail
35 - make test | tail
Filip Pytloun72cd3972018-01-18 13:40:40 +010036
37script:
Petr Michalec62b84152018-01-18 14:15:02 +010038 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
39 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Filip Pytloun72cd3972018-01-18 13:40:40 +010040
41notifications:
42 webhooks:
43 urls:
44 - https://webhooks.gitter.im/e/6123573504759330786b
Petr Michalec62b84152018-01-18 14:15:02 +010045 on_success: change # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010046 on_failure: never # options: [always|never|change] default: always
Petr Michalec62b84152018-01-18 14:15:02 +010047 on_start: never # options: [always|never|change] default: always
48 on_cancel: never # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010049 on_error: never # options: [always|never|change] default: always
50 email: false