Bartosz Kupidura | aefd039 | 2017-11-06 09:27:40 +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 | - | |
| 11 | test -e Gemfile || cat <<EOF > Gemfile |
| 12 | source 'https://rubygems.org' |
| 13 | gem 'rake' |
| 14 | gem 'test-kitchen' |
| 15 | gem 'kitchen-docker' |
| 16 | gem 'kitchen-inspec' |
| 17 | gem 'inspec' |
| 18 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 19 | - bundle install |
| 20 | |
| 21 | env: |
| 22 | - PLATFORM=trevorj/salty-whales:trusty |
| 23 | - PLATFORM=trevorj/salty-whales:xenial |
| 24 | |
| 25 | before_script: |
| 26 | - set -o pipefail |
| 27 | - make test | tail |
| 28 | - reno lint $PWD | tail |
| 29 | |
| 30 | script: |
| 31 | - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration |
| 32 | |
| 33 | notifications: |
| 34 | webhooks: |
| 35 | urls: |
| 36 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 37 | on_success: change # options: [always|never|change] default: always |
| 38 | on_failure: never # options: [always|never|change] default: always |
| 39 | on_start: never # options: [always|never|change] default: always |
| 40 | on_cancel: never # options: [always|never|change] default: always |
| 41 | on_error: never # options: [always|never|change] default: always |
| 42 | email: false |