Martin Polreich | 8044a65 | 2017-08-29 14:28:59 +0200 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 6 | - pip install PyYAML |
| 7 | - pip install virtualenv |
| 8 | - | |
Martin Polreich | 42dc322 | 2018-11-07 14:42:59 +0100 | [diff] [blame] | 9 | if [ ! -e Gemfile ]; then |
| 10 | 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' |
| 11 | fi |
Martin Polreich | 8044a65 | 2017-08-29 14:28:59 +0200 | [diff] [blame] | 12 | - bundle install |
| 13 | |
| 14 | env: |
Martin Polreich | 78a5ea2 | 2018-11-20 15:08:16 +0100 | [diff] [blame] | 15 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=single |
| 16 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=single |
| 17 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=single |
Martin Polreich | 56feb35 | 2018-04-18 10:47:45 +0200 | [diff] [blame] | 18 | |
Martin Polreich | 8044a65 | 2017-08-29 14:28:59 +0200 | [diff] [blame] | 19 | before_script: |
| 20 | - set -o pipefail |
| 21 | - make test | tail |
| 22 | |
| 23 | script: |
Martin Polreich | edfc121 | 2018-01-05 13:08:53 +0100 | [diff] [blame] | 24 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 25 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 8044a65 | 2017-08-29 14:28:59 +0200 | [diff] [blame] | 26 | |
| 27 | notifications: |
| 28 | webhooks: |
| 29 | urls: |
| 30 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 31 | on_success: change # options: [always|never|change] default: always |
| 32 | on_failure: never # options: [always|never|change] default: always |
| 33 | on_start: never # options: [always|never|change] default: always |
| 34 | on_cancel: never # options: [always|never|change] default: always |
| 35 | on_error: never # options: [always|never|change] default: always |
| 36 | email: false |