Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 5 | addons: |
| 6 | apt: |
| 7 | packages: |
| 8 | - apt-transport-https |
| 9 | |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 10 | install: |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 11 | - pip install PyYAML |
| 12 | - pip install virtualenv |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 13 | - | |
Martin Polreich | 07f122f | 2018-11-07 13:29:27 +0100 | [diff] [blame] | 14 | if [ ! -e Gemfile ]; then |
| 15 | echo $PWD |
| 16 | curl -s -o ./Gemfile https://raw.githubusercontent.com/salt-formulas/salt-formulas-scripts/master/Gemfile |
| 17 | fi |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 18 | - bundle install |
| 19 | |
| 20 | env: |
Petr Michalec | eac55cf | 2018-05-31 10:06:09 +0200 | [diff] [blame] | 21 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 |
| 22 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 |
| 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-stable |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-stable |
| 26 | - PLATFORM=epcim/salt:saltstack-centos-7-salt-2017.7 |
| 27 | - PLATFORM=epcim/salt:saltstack-centos-7-salt-stable |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 28 | |
| 29 | before_script: |
| 30 | - set -o pipefail |
| 31 | - make test | tail |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 32 | |
| 33 | script: |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 34 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 35 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 36 | |
| 37 | notifications: |
| 38 | webhooks: |
| 39 | urls: |
| 40 | - https://webhooks.gitter.im/e/6123573504759330786b |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 41 | on_success: change # options: [always|never|change] default: always |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 42 | on_failure: never # options: [always|never|change] default: always |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 43 | on_start: never # options: [always|never|change] default: always |
| 44 | on_cancel: never # options: [always|never|change] default: always |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 45 | on_error: never # options: [always|never|change] default: always |
| 46 | email: false |