blob: cdba2b53803f119b3a4eb577b816267d7dd39d5b [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:
Petr Michalec97483e72018-01-09 12:04:24 +010020
Oleh Hryhorov7c5dfd32018-01-19 15:43:44 +020021 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=control-default
22 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=master-default
23 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=minion-default
24 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=minion-multi-master-failover
25 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=control-default
26 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=master-default
27 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=minion-default
28 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=minion-multi-master-failover
29# TODO, once 18.04 LTS Bionic Beaver is released, rename trusty to bionic
30 - PLATFORM=trevorj/salty-whales:bionic-2017.7 SUITE=master-default
31 - PLATFORM=trevorj/salty-whales:bionic-2017.7 SUITE=minion-default
Martin Polreichfa2b6362017-09-25 10:34:18 +020032 - PLATFORM=trevorj/salty-whales:trusty SUITE=control-default
Petr Michalec97483e72018-01-09 12:04:24 +010033 - PLATFORM=trevorj/salty-whales:trusty SUITE=master-default
34 - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-default
Martin Polreichfa2b6362017-09-25 10:34:18 +020035 - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-multi-master-failover
Petr Michalec97483e72018-01-09 12:04:24 +010036 - PLATFORM=trevorj/salty-whales:xenial SUITE=control-default
37 - PLATFORM=trevorj/salty-whales:xenial SUITE=master-default
38 - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-default
Martin Polreichfa2b6362017-09-25 10:34:18 +020039 - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-multi-master-failover
Petr Michalec97483e72018-01-09 12:04:24 +010040# TODO, once 18.04 LTS Bionic Beaver is released, rename trusty to bionic
41 - PLATFORM=trevorj/salty-whales:bionic SUITE=master-default
42 - PLATFORM=trevorj/salty-whales:bionic SUITE=minion-default
Martin81992294ff2017-02-17 23:52:17 +010043
44before_script:
Martin Polreich6234fdf2017-03-28 17:19:48 +020045 - set -o pipefail
Martin81992294ff2017-02-17 23:52:17 +010046 - make test | tail
47
48script:
Martin Polreichfa2b6362017-09-25 10:34:18 +020049 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
50 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich6234fdf2017-03-28 17:19:48 +020051
52notifications:
53 webhooks:
54 urls:
55 - https://webhooks.gitter.im/e/6123573504759330786b
56 on_success: change # options: [always|never|change] default: always
57 on_failure: never # options: [always|never|change] default: always
58 on_start: never # options: [always|never|change] default: always
59 on_cancel: never # options: [always|never|change] default: always
60 on_error: never # options: [always|never|change] default: always
61 email: false