Martin819 | 584f6dd | 2017-03-21 15:32:04 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 6 | - pip install PyYAML |
| 7 | - pip install virtualenv |
| 8 | - | |
| 9 | test -e Gemfile || cat <<EOF > Gemfile |
| 10 | source 'https://rubygems.org' |
| 11 | gem 'rake' |
| 12 | gem 'test-kitchen' |
| 13 | gem 'kitchen-docker' |
| 14 | gem 'kitchen-inspec' |
| 15 | gem 'inspec' |
Martin Polreich | fa3ac80 | 2017-03-28 17:16:35 +0200 | [diff] [blame] | 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 584f6dd | 2017-03-21 15:32:04 +0100 | [diff] [blame] | 17 | - bundle install |
| 18 | |
| 19 | env: |
Martin Polreich | fcbf0ff | 2017-08-25 11:56:56 +0200 | [diff] [blame] | 20 | - PLATFORM=trevorj/salty-whales:trusty SUITE=postgresql_server |
| 21 | - PLATFORM=trevorj/salty-whales:xenial SUITE=postgresql_server |
| 22 | - PLATFORM=trevorj/salty-whales:trusty SUITE=postgresql_client |
| 23 | - PLATFORM=trevorj/salty-whales:xenial SUITE=postgresql_client |
Martin Polreich | fa3ac80 | 2017-03-28 17:16:35 +0200 | [diff] [blame] | 24 | |
Martin819 | 584f6dd | 2017-03-21 15:32:04 +0100 | [diff] [blame] | 25 | before_script: |
Martin819 | 574df2c | 2017-03-28 08:42:36 +0200 | [diff] [blame] | 26 | - set -o pipefail |
| 27 | - make test | tail |
Martin819 | 584f6dd | 2017-03-21 15:32:04 +0100 | [diff] [blame] | 28 | |
| 29 | script: |
Martin Polreich | fcbf0ff | 2017-08-25 11:56:56 +0200 | [diff] [blame] | 30 | - KITCHEN_LOCAL_YAML=.kitchen.travis.yml bundle exec kitchen test -t tests/integration |
Martin Polreich | fa3ac80 | 2017-03-28 17:16:35 +0200 | [diff] [blame] | 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 |