blob: f4dfa47c64a230667d9822c109d0b2336afd6244 [file] [log] [blame]
Martin Polreichdda63c02018-06-21 15:27:55 +02001language: python
2python:
3- "2.7.13"
Martin81923e0eb42017-03-24 13:55:31 +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 Polreich05282372017-03-28 17:06:10 +020019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81923e0eb42017-03-24 13:55:31 +010020 - bundle install
21
22env:
Mykyta Karpin72d0b992018-02-16 12:01:11 +020023 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=agent_cluster
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=agent_single
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=agent_cluster
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=agent_single
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=server_cluster
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=server_single
29 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_cluster
Mykyta Karpin096d8e12018-03-01 14:57:10 +020030 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_gnocchi_cluster
Mykyta Karpin72d0b992018-02-16 12:01:11 +020031 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_single
32 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_cluster_ssl
Mykyta Karpin096d8e12018-03-01 14:57:10 +020033 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_gnocchi_cluster_ssl
Mykyta Karpin72d0b992018-02-16 12:01:11 +020034 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=agent_cluster_ssl
35 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_cluster
36 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_single
37 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster
38 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_single
39 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_cluster
Mykyta Karpin096d8e12018-03-01 14:57:10 +020040 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_gnocchi_cluster
Mykyta Karpin72d0b992018-02-16 12:01:11 +020041 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_single
42 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster
43 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_single
44 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster_ssl
Mykyta Karpin096d8e12018-03-01 14:57:10 +020045 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_gnocchi_cluster_ssl
Mykyta Karpin72d0b992018-02-16 12:01:11 +020046 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster_ssl
Martin Polreich05282372017-03-28 17:06:10 +020047
Martin81923e0eb42017-03-24 13:55:31 +010048before_script:
Martin Polreich05282372017-03-28 17:06:10 +020049 - set -o pipefail
50 - make test | tail
Martin81923e0eb42017-03-24 13:55:31 +010051
52script:
Martin Polreich16a786f2018-01-05 12:49:34 +010053 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
54 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich05282372017-03-28 17:06:10 +020055
56notifications:
57 webhooks:
58 urls:
59 - https://webhooks.gitter.im/e/6123573504759330786b
60 on_success: change # options: [always|never|change] default: always
61 on_failure: never # options: [always|never|change] default: always
62 on_start: never # options: [always|never|change] default: always
63 on_cancel: never # options: [always|never|change] default: always
64 on_error: never # options: [always|never|change] default: always
65 email: false