blob: 2e40756c3de7c900313e2650355e8fdb7786ee0c [file] [log] [blame]
Martin8199c78d942017-02-21 16:03:34 +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 Polreich045e0602017-03-28 16:58:15 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin8199c78d942017-02-21 16:03:34 +010017 - bundle install
18
19env:
Martin Polreich1c887532018-01-05 13:32:48 +010020 - PLATFORM=trevorj/salty-whales:trusty SUITE=class-mapping
21 - PLATFORM=trevorj/salty-whales:xenial SUITE=class-mapping
22 - PLATFORM=trevorj/salty-whales:trusty SUITE=generate-multi
23 - PLATFORM=trevorj/salty-whales:xenial SUITE=generate-multi
24 - PLATFORM=trevorj/salty-whales:trusty SUITE=generate-single
25 - PLATFORM=trevorj/salty-whales:xenial SUITE=generate-single
26 - PLATFORM=trevorj/salty-whales:trusty SUITE=storage-local
27 - PLATFORM=trevorj/salty-whales:xenial SUITE=storage-local
28 - PLATFORM=trevorj/salty-whales:trusty SUITE=storage-nodes-uri
29 - PLATFORM=trevorj/salty-whales:xenial SUITE=storage-nodes-uri
Martin8199c78d942017-02-21 16:03:34 +010030
31before_script:
Martin Polreich045e0602017-03-28 16:58:15 +020032 - set -o pipefail
Martin8199c78d942017-02-21 16:03:34 +010033 - make test | tail
34
35script:
Martin Polreich1c887532018-01-05 13:32:48 +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 Polreich045e0602017-03-28 16:58:15 +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