Martin Polreich | b56d738 | 2018-06-21 15:30:01 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Petr Michalec | 8a0d52e | 2018-05-30 16:22:56 +0200 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | addons: |
| 9 | apt: |
| 10 | packages: |
| 11 | - apt-transport-https |
| 12 | |
| 13 | install: |
| 14 | - pip install PyYAML |
| 15 | - pip install virtualenv |
| 16 | - | |
Martin Polreich | 58ffd70 | 2018-11-07 14:43:43 +0100 | [diff] [blame^] | 17 | if [ ! -e Gemfile ]; then |
| 18 | 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' |
| 19 | fi |
Petr Michalec | 8a0d52e | 2018-05-30 16:22:56 +0200 | [diff] [blame] | 20 | - bundle install |
| 21 | |
| 22 | env: |
| 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-stable |
| 26 | |
| 27 | before_script: |
| 28 | - set -o pipefail |
| 29 | - make test | tail |
| 30 | |
| 31 | script: |
| 32 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 33 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
| 34 | |
| 35 | notifications: |
| 36 | webhooks: |
| 37 | urls: |
| 38 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 39 | on_success: change # options: [always|never|change] default: always |
| 40 | on_failure: never # options: [always|never|change] default: always |
| 41 | on_start: never # options: [always|never|change] default: always |
| 42 | on_cancel: never # options: [always|never|change] default: always |
| 43 | on_error: never # options: [always|never|change] default: always |
| 44 | email: false |