Martin Polreich | dda63c0 | 2018-06-21 15:27:55 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | install: |
| 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 Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 19 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 20 | - bundle install |
| 21 | |
| 22 | env: |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 23 | - 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 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 |
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=server_single |
| 32 | - 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] | 33 | - 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] | 34 | - 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 Karpin | 096d8e1 | 2018-03-01 14:57:10 +0200 | [diff] [blame] | 40 | - 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] | 41 | - 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 Karpin | 096d8e1 | 2018-03-01 14:57:10 +0200 | [diff] [blame] | 45 | - 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] | 46 | - 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] | 47 | |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 48 | before_script: |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 49 | - set -o pipefail |
| 50 | - make test | tail |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 51 | |
| 52 | script: |
Martin Polreich | 16a786f | 2018-01-05 12:49:34 +0100 | [diff] [blame] | 53 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 54 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 55 | |
| 56 | notifications: |
| 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 |