Martin819 | 9c78d94 | 2017-02-21 16:03:34 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 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 Polreich | 045e060 | 2017-03-28 16:58:15 +0200 | [diff] [blame] | 16 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 9c78d94 | 2017-02-21 16:03:34 +0100 | [diff] [blame] | 17 | - bundle install |
| 18 | |
| 19 | env: |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 20 | - PLATFORM=trevorj/salty-whales:trusty SUITE=class-mapping |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 21 | - PLATFORM=trevorj/salty-whales:trusty SUITE=generate-multi |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 22 | - PLATFORM=trevorj/salty-whales:trusty SUITE=generate-single |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 23 | - PLATFORM=trevorj/salty-whales:trusty SUITE=storage-local |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 24 | - PLATFORM=trevorj/salty-whales:trusty SUITE=storage-nodes-uri |
Petr Michalec | d59a87c | 2018-01-09 12:07:11 +0100 | [diff] [blame] | 25 | - PLATFORM=trevorj/salty-whales:xenial SUITE=class-mapping |
| 26 | - PLATFORM=trevorj/salty-whales:xenial SUITE=generate-multi |
| 27 | - PLATFORM=trevorj/salty-whales:xenial SUITE=generate-single |
| 28 | - PLATFORM=trevorj/salty-whales:xenial SUITE=storage-local |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 29 | - PLATFORM=trevorj/salty-whales:xenial SUITE=storage-nodes-uri |
Petr Michalec | d59a87c | 2018-01-09 12:07:11 +0100 | [diff] [blame] | 30 | - PLATFORM=trevorj/salty-whales:bionic SUITE=class_mapping |
| 31 | - PLATFORM=trevorj/salty-whales:bionic SUITE=generate_multi |
| 32 | - PLATFORM=trevorj/salty-whales:bionic SUITE=generate_single |
| 33 | - PLATFORM=trevorj/salty-whales:bionic SUITE=storage_local |
| 34 | - PLATFORM=trevorj/salty-whales:bionic SUITE=storage_nodes_uri |
Martin819 | 9c78d94 | 2017-02-21 16:03:34 +0100 | [diff] [blame] | 35 | |
| 36 | before_script: |
Martin Polreich | 045e060 | 2017-03-28 16:58:15 +0200 | [diff] [blame] | 37 | - set -o pipefail |
Martin819 | 9c78d94 | 2017-02-21 16:03:34 +0100 | [diff] [blame] | 38 | - make test | tail |
| 39 | |
| 40 | script: |
Martin Polreich | 1c88753 | 2018-01-05 13:32:48 +0100 | [diff] [blame] | 41 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 42 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 045e060 | 2017-03-28 16:58:15 +0200 | [diff] [blame] | 43 | |
| 44 | notifications: |
| 45 | webhooks: |
| 46 | urls: |
| 47 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 48 | on_success: change # options: [always|never|change] default: always |
| 49 | on_failure: never # options: [always|never|change] default: always |
| 50 | on_start: never # options: [always|never|change] default: always |
| 51 | on_cancel: never # options: [always|never|change] default: always |
| 52 | on_error: never # options: [always|never|change] default: always |
| 53 | email: false |