blob: a9c4dd4adc60dbead12059a73aff0783cf110687 [file] [log] [blame]
Petr Michalec579e64d2017-03-24 12:54:29 +01001sudo: 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-vagrant'
15 gem 'kitchen-inspec'
16 gem 'inspec'
Martin Polreich9ea2c472017-04-06 09:59:10 +020017 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalec579e64d2017-03-24 12:54:29 +010018 - bundle install
19
20env:
Martin Polreich51b3bc62018-02-21 13:09:04 +010021 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc311 SUITE=single3
22 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc311 SUITE=analytics3
23 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc311 SUITE=control3
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc311 SUITE=cluster3
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc311 SUITE=vrouter3
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc323 SUITE=single3
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc323 SUITE=analytics3
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc323 SUITE=control3
29 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc323 SUITE=cluster3
30 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc323 SUITE=vrouter3
31 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc40 SUITE=single40
32 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc40 SUITE=analytics40
33 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc40 SUITE=control40
34 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc40 SUITE=cluster40
35 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OC_REPO=oc40 SUITE=vrouter40
36 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc311 SUITE=single3
37 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc311 SUITE=analytics3
38 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc311 SUITE=control3
39 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc311 SUITE=cluster3
40 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc311 SUITE=vrouter3
41 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc323 SUITE=single3
42 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc323 SUITE=analytics3
43 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc323 SUITE=control3
44 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc323 SUITE=cluster3
45 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc323 SUITE=vrouter3
46 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc40 SUITE=single40
47 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc40 SUITE=analytics40
48 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc40 SUITE=control40
49 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc40 SUITE=cluster40
50 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OC_REPO=oc40 SUITE=vrouter40
Petr Michalec579e64d2017-03-24 12:54:29 +010051
52before_script:
Martin Polreich9ea2c472017-04-06 09:59:10 +020053 - set -o pipefail
Petr Michalec579e64d2017-03-24 12:54:29 +010054 - make test | tail
55
56script:
Martin Polreiche3a2b2c2018-01-05 13:29:09 +010057 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
58 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Petr Michalec579e64d2017-03-24 12:54:29 +010059
Martin Polreich9ea2c472017-04-06 09:59:10 +020060notifications:
61 webhooks:
62 urls:
63 - https://webhooks.gitter.im/e/6123573504759330786b
64 on_success: change # options: [always|never|change] default: always
65 on_failure: never # options: [always|never|change] default: always
66 on_start: never # options: [always|never|change] default: always
67 on_cancel: never # options: [always|never|change] default: always
68 on_error: never # options: [always|never|change] default: always
69 email: false