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: |
| 11 | - git fetch --unshallow --tags |
| 12 | - pip install PyYAML |
| 13 | - pip install virtualenv |
| 14 | - pip install reno |
| 15 | - | |
| 16 | test -e Gemfile || cat <<EOF > Gemfile |
| 17 | source 'https://rubygems.org' |
| 18 | gem 'rake' |
| 19 | gem 'test-kitchen' |
| 20 | gem 'kitchen-docker' |
| 21 | gem 'kitchen-inspec' |
| 22 | gem 'inspec' |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame^] | 23 | gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 24 | - bundle install |
| 25 | |
| 26 | env: |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 27 | - PLATFORM=trevorj/salty-whales:xenial |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame^] | 28 | - PLATFORM=trevorj/salty-whales:bionic |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 29 | |
| 30 | before_script: |
| 31 | - set -o pipefail |
| 32 | - make test | tail |
| 33 | - reno lint $PWD | tail |
| 34 | |
| 35 | script: |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame^] | 36 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 37 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 38 | |
| 39 | notifications: |
| 40 | webhooks: |
| 41 | urls: |
| 42 | - https://webhooks.gitter.im/e/6123573504759330786b |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame^] | 43 | on_success: change # options: [always|never|change] default: always |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 44 | on_failure: never # options: [always|never|change] default: always |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame^] | 45 | on_start: never # options: [always|never|change] default: always |
| 46 | on_cancel: never # options: [always|never|change] default: always |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 47 | on_error: never # options: [always|never|change] default: always |
| 48 | email: false |