Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 5 | install: |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 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 | b53b238 | 2017-03-28 16:38:44 +0200 | [diff] [blame] | 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 17 | - bundle install |
| 18 | |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 19 | env: |
Martin Polreich | 0278d25 | 2017-08-25 11:40:10 +0200 | [diff] [blame] | 20 | - PLATFORM=trevorj/salty-whales:trusty SUITE=iptables_server |
| 21 | - PLATFORM=trevorj/salty-whales:xenial SUITE=iptables_server |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 22 | |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 23 | before_script: |
Martin819 | f7613e4 | 2017-03-28 09:40:12 +0200 | [diff] [blame] | 24 | - set -o pipefail |
| 25 | - make test | tail |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 26 | |
| 27 | script: |
Martin Polreich | 0278d25 | 2017-08-25 11:40:10 +0200 | [diff] [blame] | 28 | - KITCHEN_LOCAL_YAML=.kitchen.travis.yml bundle exec kitchen test -t tests/integration |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 29 | |
| 30 | notifications: |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 31 | on: |
| 32 | branch: master |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 33 | webhooks: |
| 34 | urls: |
| 35 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 36 | on_success: change # options: [always|never|change] default: always |
Martin819 | 4cbbe3b | 2017-03-28 12:50:56 +0200 | [diff] [blame] | 37 | on_failure: never # options: [always|never|change] default: always |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 38 | on_start: never # options: [always|never|change] default: always |
| 39 | on_cancel: never # options: [always|never|change] default: always |
Martin819 | 4cbbe3b | 2017-03-28 12:50:56 +0200 | [diff] [blame] | 40 | on_error: never # options: [always|never|change] default: always |
| 41 | email: false |