blob: 232111ec7b6b830da357680753b87158783c05fe [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 Polreich5124ae02018-02-21 14:33:25 +010020 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=class-mapping
21 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=generate-multi
22 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=generate-single
23 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=storage-local
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=storage-nodes-uri
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=class-mapping
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=generate-multi
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=generate-single
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=storage-local
29 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=storage-nodes-uri
30 # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=class_mapping
31 # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=generate_multi
32 # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=generate_single
33 # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=storage_local
34 # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=storage_nodes_uri
Martin8199c78d942017-02-21 16:03:34 +010035
36before_script:
Martin Polreich045e0602017-03-28 16:58:15 +020037 - set -o pipefail
Martin8199c78d942017-02-21 16:03:34 +010038 - make test | tail
39
40script:
Martin Polreich1c887532018-01-05 13:32:48 +010041 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
42 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich045e0602017-03-28 16:58:15 +020043
44notifications:
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