Martin Polreich | 473a11b | 2018-06-21 15:29:43 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Marek Celoud | 43d293f | 2017-06-07 12:29:24 +0200 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | install: |
| 9 | - pip install PyYAML |
| 10 | - pip install virtualenv |
| 11 | - | |
Martin Polreich | 0ca0adc | 2018-11-07 14:43:29 +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 |
Marek Celoud | 43d293f | 2017-06-07 12:29:24 +0200 | [diff] [blame] | 15 | - bundle install |
| 16 | |
Martin Polreich | c89eaad | 2017-07-17 13:41:14 +0200 | [diff] [blame] | 17 | env: |
Martin Polreich | a879514 | 2018-11-20 15:08:49 +0100 | [diff] [blame] | 18 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=master-cluster |
| 19 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=pool-cluster |
Martin Polreich | a879514 | 2018-11-20 15:08:49 +0100 | [diff] [blame] | 20 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=master-contrail4-0 |
| 21 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=pool-contrail4-0 |
| 22 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=common-storageclass |
| 23 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=master-cluster |
| 24 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=pool-cluster |
Martin Polreich | a879514 | 2018-11-20 15:08:49 +0100 | [diff] [blame] | 25 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=master-contrail4-0 |
| 26 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=pool-contrail4-0 |
| 27 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=master-cluster |
| 28 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=pool-cluster |
Martin Polreich | a879514 | 2018-11-20 15:08:49 +0100 | [diff] [blame] | 29 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=master-contrail4-0 |
| 30 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=pool-contrail4-0 |
| 31 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=common-storageclass |
Martin Polreich | c89eaad | 2017-07-17 13:41:14 +0200 | [diff] [blame] | 32 | |
Marek Celoud | 43d293f | 2017-06-07 12:29:24 +0200 | [diff] [blame] | 33 | before_script: |
| 34 | - set -o pipefail |
| 35 | - make test | tail |
| 36 | |
| 37 | script: |
Martin Polreich | 5e48485 | 2018-01-05 13:13:50 +0100 | [diff] [blame] | 38 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 39 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Marek Celoud | 43d293f | 2017-06-07 12:29:24 +0200 | [diff] [blame] | 40 | |
| 41 | notifications: |
| 42 | webhooks: |
| 43 | urls: |
| 44 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 45 | on_success: change # options: [always|never|change] default: always |
| 46 | on_failure: never # options: [always|never|change] default: always |
| 47 | on_start: never # options: [always|never|change] default: always |
| 48 | on_cancel: never # options: [always|never|change] default: always |
| 49 | on_error: never # options: [always|never|change] default: always |
| 50 | email: false |