blob: fbeceb943a6ab4fed543fcc792c812754a8a2524 [file] [log] [blame]
Martin Polreich283e07e2018-06-21 15:31:29 +02001language: python
2python:
3- "2.7.13"
Martin81907885fc2017-03-21 15:40:39 +01004sudo: 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'
Martin Polreichbf493332017-03-28 17:17:17 +020019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81907885fc2017-03-21 15:40:39 +010020 - bundle install
21
22env:
Martin Polreich4ea69912018-04-25 15:50:52 +020023 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-single
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server-single
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-single
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server-single
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=client-single
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=server-single
29 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-single
30 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=server-single
31 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=client-single
32 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=server-single
Martin Polreichbf493332017-03-28 17:17:17 +020033
Martin81907885fc2017-03-21 15:40:39 +010034before_script:
Martin819d47757d2017-03-28 08:36:40 +020035 - set -o pipefail
36 - make test | tail
Martin81907885fc2017-03-21 15:40:39 +010037
38script:
Martin Polreich955b2112018-01-05 13:33:23 +010039 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
40 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichbf493332017-03-28 17:17:17 +020041
42notifications:
43 webhooks:
44 urls:
45 - https://webhooks.gitter.im/e/6123573504759330786b
46 on_success: change # options: [always|never|change] default: always
47 on_failure: never # options: [always|never|change] default: always
48 on_start: never # options: [always|never|change] default: always
49 on_cancel: never # options: [always|never|change] default: always
50 on_error: never # options: [always|never|change] default: always
51 email: false