blob: c4a78d76b1b1260af2ce99f4e2c2d9cd8bbb6b37 [file] [log] [blame]
Martin Polreich9bf9e4b2018-06-21 15:31:20 +02001language: python
2python:
3- "2.7.13"
Martin8199c78d942017-02-21 16:03:34 +01004sudo: required
5services:
6 - docker
7
8install:
9 - pip install PyYAML
10 - pip install virtualenv
11 - |
12 test -e Gemfile || cat <<EOF > Gemfile
13 source 'https://rubygems.org'
14 gem 'rake'
15 gem 'test-kitchen'
16 gem 'kitchen-docker'
17 gem 'kitchen-inspec'
18 gem 'inspec'
Martin Polreich045e0602017-03-28 16:58:15 +020019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin8199c78d942017-02-21 16:03:34 +010020 - bundle install
21
22env:
Martin Polreich50ef19e2018-04-25 15:21:48 +020023 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=class-mapping
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=generate-multi
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=generate-single
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=storage-local
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=storage-nodes-uri
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=class-mapping
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=generate-multi
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=generate-single
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=storage-local
32 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=storage-nodes-uri
33 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=class-mapping
34 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=generate-multi
35 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=generate-single
36 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=storage-local
37 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=storage-nodes-uri
38 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=class-mapping
39 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=generate-multi
40 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=generate-single
41 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=storage-local
42 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=storage-nodes-uri
43 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=class-mapping
44 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=generate-multi
45 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=generate-single
46 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=storage-local
47 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=storage-nodes-uri
Martin8199c78d942017-02-21 16:03:34 +010048
49before_script:
Martin Polreich045e0602017-03-28 16:58:15 +020050 - set -o pipefail
Martin8199c78d942017-02-21 16:03:34 +010051 - make test | tail
52
53script:
Martin Polreich1c887532018-01-05 13:32:48 +010054 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
55 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich045e0602017-03-28 16:58:15 +020056
57notifications:
58 webhooks:
59 urls:
60 - https://webhooks.gitter.im/e/6123573504759330786b
61 on_success: change # options: [always|never|change] default: always
62 on_failure: never # options: [always|never|change] default: always
63 on_start: never # options: [always|never|change] default: always
64 on_cancel: never # options: [always|never|change] default: always
65 on_error: never # options: [always|never|change] default: always
66 email: false