blob: e13a3ffe602082ef26e137438875ed6e1440d743 [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 Polreich5ac43ce2018-01-05 13:08:15 +010020 - 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 Polreich5ac43ce2018-01-05 13:08:15 +010033 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
34 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich04493d32017-03-28 16:50:07 +020035
36notifications:
37 webhooks:
38 urls:
39 - https://webhooks.gitter.im/e/6123573504759330786b
40 on_success: change # options: [always|never|change] default: always
41 on_failure: never # options: [always|never|change] default: always
42 on_start: never # options: [always|never|change] default: always
43 on_cancel: never # options: [always|never|change] default: always
44 on_error: never # options: [always|never|change] default: always
45 email: false