blob: 79f615981afb7954e3df2213b2c2c3bf6a2bfa0b [file] [log] [blame]
Petr Michalecfc1801e2017-03-10 10:30:26 +01001sudo: required
2services:
3 - docker
4
5install:
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 Polreich04493d32017-03-28 16:50:07 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalecfc1801e2017-03-10 10:30:26 +010017 - bundle install
18
19env:
Martin Polreichdad565f2017-07-17 15:56:04 +020020 - PLATFORM=trevorj/salty-whales:trusty SUITE=server_cluster
21 - PLATFORM=trevorj/salty-whales:xenial SUITE=server_cluster
22 - PLATFORM=trevorj/salty-whales:trusty SUITE=server_plugin_dirs
23 - PLATFORM=trevorj/salty-whales:xenial SUITE=server_plugin_dirs
24 - PLATFORM=trevorj/salty-whales:trusty SUITE=server_single
25 - PLATFORM=trevorj/salty-whales:xenial SUITE=server_single
Petr Michalecfc1801e2017-03-10 10:30:26 +010026
Martin Polreich04493d32017-03-28 16:50:07 +020027
Petr Michalecfc1801e2017-03-10 10:30:26 +010028before_script:
Martin Polreich04493d32017-03-28 16:50:07 +020029 - set -o pipefail
30 - make test | tail
Petr Michalecfc1801e2017-03-10 10:30:26 +010031
32script:
Martin Polreichdad565f2017-07-17 15:56:04 +020033 - KITCHEN_LOCAL_YAML=.kitchen.travis.yml bundle exec kitchen test -t tests/integration
Martin Polreich04493d32017-03-28 16:50:07 +020034
35notifications:
36 webhooks:
37 urls:
38 - https://webhooks.gitter.im/e/6123573504759330786b
39 on_success: change # options: [always|never|change] default: always
40 on_failure: never # options: [always|never|change] default: always
41 on_start: never # options: [always|never|change] default: always
42 on_cancel: never # options: [always|never|change] default: always
43 on_error: never # options: [always|never|change] default: always
44 email: false