blob: 82d459114b05cae3a1971e0311d81db4919d993a [file] [log] [blame]
Martin81992294ff2017-02-17 23:52:17 +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'
Petr Michalecdf75d682018-02-07 13:43:53 +010016 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin81992294ff2017-02-17 23:52:17 +010017 - bundle install
18
19env:
Petr Michalec97483e72018-01-09 12:04:24 +010020
Martin Polreich8ecddf02018-02-16 11:25:17 +010021 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=control-default
22 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-default
23 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=minion-default
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=minion-multi-master-failover
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=control-default
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-default
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=minion-default
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=minion-multi-master-failover
29# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=control-default
30# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-default
31# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=minion-default
32# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=minion-multi-master-failover
Martin81992294ff2017-02-17 23:52:17 +010033
34before_script:
Martin Polreich6234fdf2017-03-28 17:19:48 +020035 - set -o pipefail
Martin81992294ff2017-02-17 23:52:17 +010036 - make test | tail
37
38script:
Martin Polreichfa2b6362017-09-25 10:34:18 +020039 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
40 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich6234fdf2017-03-28 17:19:48 +020041
42notifications:
43 webhooks:
44 urls:
45 - https://webhooks.gitter.im/e/6123573504759330786b
46 on_success: change # options: [always|never|change] default: always
47 on_failure: never # options: [always|never|change] default: always
48 on_start: never # options: [always|never|change] default: always
49 on_cancel: never # options: [always|never|change] default: always
50 on_error: never # options: [always|never|change] default: always
51 email: false