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 | - | |
Martin Polreich | b275fa5 | 2018-11-07 14:41:54 +0100 | [diff] [blame] | 12 | if [ ! -e Gemfile ]; then |
| 13 | curl -s -o ./Gemfile 'https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas/salt-formulas-scripts.git;a=blob_plain;f=Gemfile;hb=refs/heads/master' |
| 14 | fi |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 15 | - bundle install |
| 16 | |
| 17 | env: |
Mykyta Karpin | e78e823 | 2018-08-27 11:11:33 +0300 | [diff] [blame] | 18 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=agent_cluster |
| 19 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=agent_single |
| 20 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=server_cluster |
| 21 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=newton SUITE=server_single |
| 22 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=agent_cluster |
| 23 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=agent_single |
| 24 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=server_cluster |
| 25 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=mitaka SUITE=server_single |
Mykyta Karpin | 72d0b99 | 2018-02-16 12:01:11 +0200 | [diff] [blame] | 26 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_cluster |
| 27 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=agent_single |
| 28 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_cluster |
| 29 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=agent_single |
| 30 | - 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] | 31 | - 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] | 32 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server_single |
| 33 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_cluster |
| 34 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server_single |
| 35 | - 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] | 36 | - 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] | 37 | - 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] | 38 | |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 39 | before_script: |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 40 | - set -o pipefail |
| 41 | - make test | tail |
Martin819 | 23e0eb4 | 2017-03-24 13:55:31 +0100 | [diff] [blame] | 42 | |
| 43 | script: |
Martin Polreich | 16a786f | 2018-01-05 12:49:34 +0100 | [diff] [blame] | 44 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 45 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 0528237 | 2017-03-28 17:06:10 +0200 | [diff] [blame] | 46 | |
| 47 | notifications: |
| 48 | webhooks: |
| 49 | urls: |
| 50 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 51 | on_success: change # options: [always|never|change] default: always |
| 52 | on_failure: never # options: [always|never|change] default: always |
| 53 | on_start: never # options: [always|never|change] default: always |
| 54 | on_cancel: never # options: [always|never|change] default: always |
| 55 | on_error: never # options: [always|never|change] default: always |
| 56 | email: false |