blob: e0965cd4168f8be450f7e850d5749a2676de54bb [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'
Martin Polreicha06e1fd2018-10-24 12:15:42 +020018 gem 'inspec', '<3.0.0'
19 #Version was frozen, because of issues in the version of inspec >3.0.0 -- see https://mirantis.jira.com/browse/PROD-24324 for more info, '<3.0.0'
Martin Polreichbf493332017-03-28 17:17:17 +020020 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81907885fc2017-03-21 15:40:39 +010021 - bundle install
22
23env:
Martin Polreich4ea69912018-04-25 15:50:52 +020024 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-single
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server-single
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-single
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server-single
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=client-single
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=server-single
30 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-single
31 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=server-single
32 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=client-single
33 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=server-single
Martin Polreichbf493332017-03-28 17:17:17 +020034
Martin81907885fc2017-03-21 15:40:39 +010035before_script:
Martin819d47757d2017-03-28 08:36:40 +020036 - set -o pipefail
37 - make test | tail
Martin81907885fc2017-03-21 15:40:39 +010038
39script:
Martin Polreich955b2112018-01-05 13:33:23 +010040 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
41 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichbf493332017-03-28 17:17:17 +020042
43notifications:
44 webhooks:
45 urls:
46 - https://webhooks.gitter.im/e/6123573504759330786b
47 on_success: change # options: [always|never|change] default: always
48 on_failure: never # options: [always|never|change] default: always
49 on_start: never # options: [always|never|change] default: always
50 on_cancel: never # options: [always|never|change] default: always
51 on_error: never # options: [always|never|change] default: always
52 email: false