Petr Michalec | 579e64d | 2017-03-24 12:54:29 +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-vagrant' |
| 15 | gem 'kitchen-inspec' |
| 16 | gem 'inspec' |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 17 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 18 | - bundle install |
| 19 | |
| 20 | env: |
chnyda | df46d94 | 2017-10-25 13:43:42 +0200 | [diff] [blame] | 21 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc311 SUITE=single3 |
| 22 | - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc311 SUITE=analytics3 |
| 23 | - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc311 SUITE=control3 |
| 24 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc311 SUITE=cluster3 |
| 25 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc311 SUITE=tor3 |
| 26 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc311 SUITE=vrouter3 |
| 27 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc323 SUITE=single3 |
| 28 | - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc323 SUITE=analytics3 |
| 29 | - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc323 SUITE=control3 |
| 30 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc323 SUITE=cluster3 |
| 31 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc323 SUITE=tor3 |
| 32 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc323 SUITE=vrouter3 |
| 33 | # - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc323 SUITE=single3 |
Marek Celoud | dbba7ed | 2017-12-07 10:36:24 +0100 | [diff] [blame] | 34 | #- PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc323 SUITE=analytics3 |
| 35 | #- PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc323 SUITE=control3 |
chnyda | df46d94 | 2017-10-25 13:43:42 +0200 | [diff] [blame] | 36 | # - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc323 SUITE=cluster3 |
| 37 | # - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc323 SUITE=tor3 |
| 38 | - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc323 SUITE=vrouter3 |
Martin Polreich | a4a60ba | 2017-08-24 16:29:07 +0200 | [diff] [blame] | 39 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc40 SUITE=single40 |
Marek Celoud | dbba7ed | 2017-12-07 10:36:24 +0100 | [diff] [blame] | 40 | #- PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc40 SUITE=analytics40 |
| 41 | #- PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc40 SUITE=control40 |
Martin Polreich | a4a60ba | 2017-08-24 16:29:07 +0200 | [diff] [blame] | 42 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc40 SUITE=cluster40 |
| 43 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc40 SUITE=tor40 |
chnyda | 77c8a6f | 2017-09-20 16:31:44 +0200 | [diff] [blame] | 44 | # - PLATFORM=trevorj/salty-whales:trusty OC_REPO=oc40 SUITE=vrouter40 |
Martin Polreich | a4a60ba | 2017-08-24 16:29:07 +0200 | [diff] [blame] | 45 | # - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc40 SUITE=single40 |
| 46 | - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc40 SUITE=analytics40 |
| 47 | - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc40 SUITE=control40 |
| 48 | # - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc40 SUITE=cluster40 |
| 49 | # - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc40 SUITE=tor40 |
| 50 | - PLATFORM=trevorj/salty-whales:xenial OC_REPO=oc40 SUITE=vrouter40 |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 51 | |
| 52 | before_script: |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 53 | - set -o pipefail |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 54 | - make test | tail |
| 55 | |
| 56 | script: |
Martin Polreich | a4a60ba | 2017-08-24 16:29:07 +0200 | [diff] [blame] | 57 | - KITCHEN_LOCAL_YAML=.kitchen.travis.yml bundle exec kitchen test -t tests/integration |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 58 | |
Martin Polreich | 9ea2c47 | 2017-04-06 09:59:10 +0200 | [diff] [blame] | 59 | notifications: |
| 60 | webhooks: |
| 61 | urls: |
| 62 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 63 | on_success: change # options: [always|never|change] default: always |
| 64 | on_failure: never # options: [always|never|change] default: always |
| 65 | on_start: never # options: [always|never|change] default: always |
| 66 | on_cancel: never # options: [always|never|change] default: always |
| 67 | on_error: never # options: [always|never|change] default: always |
| 68 | email: false |