blob: eed1da2b10aeddabd6c992fdc8fdc718d3e331df [file] [log] [blame]
Martin81992294ff2017-02-17 23:52:17 +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 Polreich6234fdf2017-03-28 17:19:48 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81992294ff2017-02-17 23:52:17 +010017 - bundle install
18
19env:
Martin Polreichfa2b6362017-09-25 10:34:18 +020020 - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-default
21 - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-default
22 - PLATFORM=trevorj/salty-whales:trusty SUITE=master-default
23 - PLATFORM=trevorj/salty-whales:xenial SUITE=master-default
24 - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-default
25 - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-default
26 - PLATFORM=trevorj/salty-whales:trusty SUITE=control-default
27 - PLATFORM=trevorj/salty-whales:xenial SUITE=control-default
28 - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-multi-master-failover
29 - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-multi-master-failover
Martin81992294ff2017-02-17 23:52:17 +010030
31before_script:
Martin Polreich6234fdf2017-03-28 17:19:48 +020032 - set -o pipefail
Martin81992294ff2017-02-17 23:52:17 +010033 - make test | tail
34
35script:
Martin Polreichfa2b6362017-09-25 10:34:18 +020036 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
37 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich6234fdf2017-03-28 17:19:48 +020038
39notifications:
40 webhooks:
41 urls:
42 - https://webhooks.gitter.im/e/6123573504759330786b
43 on_success: change # options: [always|never|change] default: always
44 on_failure: never # options: [always|never|change] default: always
45 on_start: never # options: [always|never|change] default: always
46 on_cancel: never # options: [always|never|change] default: always
47 on_error: never # options: [always|never|change] default: always
48 email: false