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