Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 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-inspec' |
| 15 | gem 'inspec' |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 17 | - bundle install |
| 18 | |
| 19 | env: |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 20 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=agent_cluster |
| 21 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=agent_single |
| 22 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=agent_cluster |
| 23 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=agent_single |
| 24 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=server_cluster |
| 25 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=ocata SUITE=server_single |
| 26 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_cluster |
Mykyta Karpin | 096d8e1 | 2018-03-01 14:57:10 +0200 | [diff] [blame] | 27 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_gnocchi_cluster |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 28 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_single |
| 29 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_cluster_ssl |
Mykyta Karpin | 096d8e1 | 2018-03-01 14:57:10 +0200 | [diff] [blame] | 30 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server_gnocchi_cluster_ssl |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 31 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=agent_cluster_ssl |
| 32 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_cluster |
| 33 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_single |
| 34 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster |
| 35 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_single |
| 36 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_cluster |
Mykyta Karpin | 096d8e1 | 2018-03-01 14:57:10 +0200 | [diff] [blame] | 37 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_gnocchi_cluster |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 38 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_single |
| 39 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster |
| 40 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_single |
| 41 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster_ssl |
Mykyta Karpin | 096d8e1 | 2018-03-01 14:57:10 +0200 | [diff] [blame] | 42 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_gnocchi_cluster_ssl |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 43 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster_ssl |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 44 | |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 45 | before_script: |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 46 | - set -o pipefail |
| 47 | - make test | tail |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 48 | |
| 49 | script: |
Martin Polreich | 16a786f | 2018-01-05 12:49:34 +0100 | [diff] [blame] | 50 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 51 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 52 | |
| 53 | notifications: |
| 54 | webhooks: |
| 55 | urls: |
| 56 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 57 | on_success: change # options: [always|never|change] default: always |
| 58 | on_failure: never # options: [always|never|change] default: always |
| 59 | on_start: never # options: [always|never|change] default: always |
| 60 | on_cancel: never # options: [always|never|change] default: always |
| 61 | on_error: never # options: [always|never|change] default: always |
| 62 | email: false |