Martin Polreich | acc0cf8 | 2018-06-21 15:26:54 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | install: |
| 9 | - pip install PyYAML |
| 10 | - pip install virtualenv |
| 11 | - | |
Martin Polreich | c587b91 | 2018-11-07 13:47:52 +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 |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 15 | - bundle install |
| 16 | |
| 17 | env: |
Martin Polreich | c24ab22 | 2018-04-06 09:49:10 +0200 | [diff] [blame] | 18 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server-cluster |
| 19 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server-single |
| 20 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 21 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 22 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster-ssl |
| 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-single-ssl |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=ocata SUITE=server-cluster-ssl |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=ocata SUITE=server-single-ssl |
| 26 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 27 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 28 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster-ssl |
| 29 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-single-ssl |
| 30 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 31 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 32 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster-ssl |
| 33 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-single-ssl |
| 34 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 35 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 36 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster-ssl |
| 37 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-single-ssl |
| 38 | |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 39 | |
| 40 | before_script: |
| 41 | - set -o pipefail |
| 42 | - make test | tail |
| 43 | |
| 44 | script: |
Martin Polreich | 0892bf7 | 2018-01-05 12:35:58 +0100 | [diff] [blame] | 45 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 46 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 47 | |
| 48 | notifications: |
| 49 | webhooks: |
| 50 | urls: |
| 51 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 52 | on_success: change # options: [always|never|change] default: always |
| 53 | on_failure: never # options: [always|never|change] default: always |
| 54 | on_start: never # options: [always|never|change] default: always |
| 55 | on_cancel: never # options: [always|never|change] default: always |
| 56 | on_error: never # options: [always|never|change] default: always |
| 57 | email: false |