Pavel Cizinsky | 7ce8e37 | 2017-11-15 14:32:47 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 6 | - git fetch --unshallow --tags |
| 7 | - pip install PyYAML |
| 8 | - pip install virtualenv |
| 9 | - pip install reno |
| 10 | - | |
Martin Polreich | 1f390ef | 2018-11-07 14:45:18 +0100 | [diff] [blame^] | 11 | if [ ! -e Gemfile ]; then |
| 12 | 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' |
| 13 | fi |
Pavel Cizinsky | 7ce8e37 | 2017-11-15 14:32:47 +0100 | [diff] [blame] | 14 | - bundle install |
| 15 | |
| 16 | env: |
| 17 | - PLATFORM=trevorj/salty-whales:trusty |
| 18 | - PLATFORM=trevorj/salty-whales:xenial |
| 19 | |
| 20 | before_script: |
| 21 | - set -o pipefail |
| 22 | - make test | tail |
| 23 | - reno lint $PWD | tail |
| 24 | |
| 25 | script: |
| 26 | - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration |
| 27 | |
| 28 | notifications: |
| 29 | webhooks: |
| 30 | urls: |
| 31 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 32 | on_success: change # options: [always|never|change] default: always |
| 33 | on_failure: never # options: [always|never|change] default: always |
| 34 | on_start: never # options: [always|never|change] default: always |
| 35 | on_cancel: never # options: [always|never|change] default: always |
| 36 | on_error: never # options: [always|never|change] default: always |
| 37 | email: false |