blob: 9846a7230441358d7ae7cb8eb5a33f702252d7d1 [file] [log] [blame]
Martin8192a0ad192017-03-16 15:38:13 +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 Polreich8957e952017-03-28 17:09:34 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin8192a0ad192017-03-16 15:38:13 +010017 - bundle install
18
19env:
Martin Polreiche9828362017-07-17 16:27:48 +020020 - PLATFORM=trevorj/salty-whales:trusty SUITE=admin
21 - PLATFORM=trevorj/salty-whales:xenial SUITE=admin
Martin Polreich382c8702018-01-05 13:07:49 +010022 - PLATFORM=trevorj/salty-whales:trusty SUITE=single-contrail
23 - PLATFORM=trevorj/salty-whales:xenial SUITE=single-contrail
24 - PLATFORM=trevorj/salty-whales:trusty SUITE=single-general-service
25 - PLATFORM=trevorj/salty-whales:xenial SUITE=single-general-service
26 - PLATFORM=trevorj/salty-whales:trusty SUITE=single-openstack-service
27 - PLATFORM=trevorj/salty-whales:xenial SUITE=single-openstack-service
Martin Polreiche9828362017-07-17 16:27:48 +020028 - PLATFORM=trevorj/salty-whales:trusty SUITE=stats
29 - PLATFORM=trevorj/salty-whales:xenial SUITE=stats
Martin Polreich8957e952017-03-28 17:09:34 +020030
Martin8192a0ad192017-03-16 15:38:13 +010031before_script:
Martin Polreich8957e952017-03-28 17:09:34 +020032 - set -o pipefail
33 - make test | tail
Martin8192a0ad192017-03-16 15:38:13 +010034
35script:
Martin Polreich382c8702018-01-05 13:07:49 +010036 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
37 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich8957e952017-03-28 17:09:34 +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