blob: 4dd9d207d6771020aff893fe8974f3708d976530 [file] [log] [blame]
Petr Michalec579e64d2017-03-24 12:54:29 +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-vagrant'
15 gem 'kitchen-inspec'
16 gem 'inspec'
Martin Polreich9ea2c472017-04-06 09:59:10 +020017 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalec579e64d2017-03-24 12:54:29 +010018 - bundle install
19
20env:
21 matrix:
22 - SUITE=analytics
23 - SUITE=control
24 - SUITE=cluster
25 - SUITE=single
Martin Polreich9ea2c472017-04-06 09:59:10 +020026 - SUITE=tor
27 - SUITE=vrouter
28 - PLATFORM=trevorj/salty-whales:trusty SUITE=analytics
29 - PLATFORM=trevorj/salty-whales:trusty SUITE=control
30 - PLATFORM=trevorj/salty-whales:trusty SUITE=cluster
31 - PLATFORM=trevorj/salty-whales:trusty SUITE=single
32 - PLATFORM=trevorj/salty-whales:trusty SUITE=tor
33 - PLATFORM=trevorj/salty-whales:trusty SUITE=vrouter
Petr Michalec579e64d2017-03-24 12:54:29 +010034
35before_script:
Martin Polreich9ea2c472017-04-06 09:59:10 +020036 - set -o pipefail
Petr Michalec579e64d2017-03-24 12:54:29 +010037 - make test | tail
38
39script:
Martin Polreich9ea2c472017-04-06 09:59:10 +020040 - test ! -e .kitchen.yml || bundle exec kitchen converge $SUITE || true
41 - test ! -e .kitchen.yml || bundle exec kitchen verify $SUITE -t tests/integration
Petr Michalec579e64d2017-03-24 12:54:29 +010042
Martin Polreich9ea2c472017-04-06 09:59:10 +020043notifications:
44 webhooks:
45 urls:
46 - https://webhooks.gitter.im/e/6123573504759330786b
47 on_success: change # options: [always|never|change] default: always
48 on_failure: never # options: [always|never|change] default: always
49 on_start: never # options: [always|never|change] default: always
50 on_cancel: never # options: [always|never|change] default: always
51 on_error: never # options: [always|never|change] default: always
52 email: false