blob: fbcc1690cccc26a1134d94054427d4dfac63c31a [file] [log] [blame]
Martin Polreich473a11b2018-06-21 15:29:43 +02001language: python
2python:
3- "2.7.13"
Marek Celoud43d293f2017-06-07 12:29:24 +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-vagrant'
18 gem 'kitchen-inspec'
Martin Polreichbdfe99f2018-10-24 12:02:34 +020019 gem 'inspec', '<3.0.0'
20 #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
Marek Celoud43d293f2017-06-07 12:29:24 +020021 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
22 - bundle install
23
Martin Polreichc89eaad2017-07-17 13:41:14 +020024env:
Martin Polreich92fbc9c2018-04-18 12:25:59 +020025 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-cluster
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=pool-cluster
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-contrail
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-contrail4-0
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=pool-contrail4-0
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=common-storageclass
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-cluster
32 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=pool-cluster
33 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-contrail
34 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-contrail4-0
35 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=pool-contrail4-0
36 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=master-cluster
37 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=pool-cluster
38 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=master-contrail
39 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=master-contrail4-0
40 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=pool-contrail4-0
41 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=common-storageclass
42# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-cluster
43# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=pool-cluster
44# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-contrail
45# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-contrail4-0
46# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=pool-contrail4-0
47# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=master-cluster
48# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=pool-cluster
49# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=master-contrail
50# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=master-contrail4-0
51# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=pool-contrail4-0
Martin Polreichc89eaad2017-07-17 13:41:14 +020052
Marek Celoud43d293f2017-06-07 12:29:24 +020053before_script:
54 - set -o pipefail
55 - make test | tail
56
57script:
Martin Polreich5e484852018-01-05 13:13:50 +010058 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
59 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Marek Celoud43d293f2017-06-07 12:29:24 +020060
61notifications:
62 webhooks:
63 urls:
64 - https://webhooks.gitter.im/e/6123573504759330786b
65 on_success: change # options: [always|never|change] default: always
66 on_failure: never # options: [always|never|change] default: always
67 on_start: never # options: [always|never|change] default: always
68 on_cancel: never # options: [always|never|change] default: always
69 on_error: never # options: [always|never|change] default: always
70 email: false