blob: e0d9fd055f01a6ef02471c6d2e08287c03871918 [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 Karpine78e8232018-08-27 11:11:33 +030023 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=agent_cluster
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=agent_single
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=server_cluster
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=server_single
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=agent_cluster
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=agent_single
29 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=server_cluster
30 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=server_single
Mykyta Karpin72d0b992018-02-16 12:01:11 +020031 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_cluster
32 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_single
33 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster
34 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_single
35 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_cluster
Mykyta Karpin096d8e12018-03-01 14:57:10 +020036 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_gnocchi_cluster
Mykyta Karpin72d0b992018-02-16 12:01:11 +020037 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_single
38 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster
39 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_single
40 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster_ssl
Mykyta Karpin096d8e12018-03-01 14:57:10 +020041 - 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 +020042 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster_ssl
Martin Polreich05282372017-03-28 17:06:10 +020043
Martin81923e0eb42017-03-24 13:55:31 +010044before_script:
Martin Polreich05282372017-03-28 17:06:10 +020045 - set -o pipefail
46 - make test | tail
Martin81923e0eb42017-03-24 13:55:31 +010047
48script:
Martin Polreich16a786f2018-01-05 12:49:34 +010049 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
50 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich05282372017-03-28 17:06:10 +020051
52notifications:
53 webhooks:
54 urls:
55 - https://webhooks.gitter.im/e/6123573504759330786b
56 on_success: change # options: [always|never|change] default: always
57 on_failure: never # options: [always|never|change] default: always
58 on_start: never # options: [always|never|change] default: always
59 on_cancel: never # options: [always|never|change] default: always
60 on_error: never # options: [always|never|change] default: always
61 email: false