blob: 0f978f7f2bfd36f4eef2c32d2c22dd1b617ead20 [file] [log] [blame]
Martin Polreich48ae3e12017-04-13 10:53:32 +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'
Petr Michalec0d93a222017-05-03 08:29:47 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git', :branch => 'master'
Martin Polreich48ae3e12017-04-13 10:53:32 +020017 - bundle install
18
19env:
Martin Polreich9c7de372018-02-16 14:35:38 +010020 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-compose
21 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-container
22 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=host-single
23 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-compose
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-container
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=host-single
26# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-compose
27# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-container
28# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=host-single
Martin Polreich48ae3e12017-04-13 10:53:32 +020029
30before_script:
31 - make test | tail
32
33script:
Martin Polreich73fe0212018-01-05 12:57:23 +010034 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
35 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichac9be642017-08-24 17:19:59 +020036
37notifications:
38 webhooks:
39 urls:
40 - https://webhooks.gitter.im/e/6123573504759330786b
41 on_success: change # options: [always|never|change] default: always
42 on_failure: never # options: [always|never|change] default: always
43 on_start: never # options: [always|never|change] default: always
44 on_cancel: never # options: [always|never|change] default: always
45 on_error: never # options: [always|never|change] default: always
46 email: false