blob: 61d7fd653ecd67d558380d1d1c286f4e438e2fdc [file] [log] [blame]
Martin81941ea7f42017-03-16 16:21:08 +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 Polreich97a43242017-03-28 17:10:49 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81941ea7f42017-03-16 16:21:08 +010017 - bundle install
18
19env:
Martin Polreiche4301eb2018-01-19 13:27:47 +010020 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=rabbitmq-server
21 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=rabbitmq-server
22# - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=rabbitmq-ssl-server
23# - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=rabbitmq-ssl-server
Martin Polreich2f9951c2018-01-05 13:32:13 +010024 - PLATFORM=trevorj/salty-whales:trusty SUITE=rabbitmq-server
25 - PLATFORM=trevorj/salty-whales:xenial SUITE=rabbitmq-server
26# - PLATFORM=trevorj/salty-whales:trusty SUITE=rabbitmq-ssl-server
27# - PLATFORM=trevorj/salty-whales:xenial SUITE=rabbitmq-ssl-server
Martin Polreiche4301eb2018-01-19 13:27:47 +010028## Test on both Salt version until there is new test policy accepted
Martin Polreich97a43242017-03-28 17:10:49 +020029
Martin81941ea7f42017-03-16 16:21:08 +010030before_script:
Martin Polreich97a43242017-03-28 17:10:49 +020031 - set -o pipefail
32 - make test | tail
Martin81941ea7f42017-03-16 16:21:08 +010033
34script:
Martin Polreich2f9951c2018-01-05 13:32:13 +010035 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
36 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich97a43242017-03-28 17:10:49 +020037
38notifications:
39 webhooks:
40 urls:
41 - https://webhooks.gitter.im/e/6123573504759330786b
42 on_success: change # options: [always|never|change] default: always
43 on_failure: never # options: [always|never|change] default: always
44 on_start: never # options: [always|never|change] default: always
45 on_cancel: never # options: [always|never|change] default: always
46 on_error: never # options: [always|never|change] default: always
47 email: false