blob: e1f03f86f60de7f2cc15606522ef904b7266cd90 [file] [log] [blame]
Petr Michalec1c5f7c42017-03-10 10:26:09 +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 Polreich603c8022017-04-06 10:04:51 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalec1c5f7c42017-03-10 10:26:09 +010017 - bundle install
18
19env:
Martin Polreich02676fe2018-02-16 15:02:35 +010020 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=cluster
21 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=single-ceph
22 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=single-barbican
23 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=single
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=cluster
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=single-ceph
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=single-barbican
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=single
28# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=cluster
29# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=single-ceph
30# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=single-barbican
31# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=single
Petr Michalec1c5f7c42017-03-10 10:26:09 +010032
33before_script:
Martin Polreich603c8022017-04-06 10:04:51 +020034 - set -o pipefail
35 - make test | tail
Petr Michalec1c5f7c42017-03-10 10:26:09 +010036
37script:
Martin Polreich4da11872018-01-05 13:06:39 +010038 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
39 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich603c8022017-04-06 10:04:51 +020040
41notifications:
42 webhooks:
43 urls:
44 - https://webhooks.gitter.im/e/6123573504759330786b
45 on_success: change # options: [always|never|change] default: always
46 on_failure: never # options: [always|never|change] default: always
47 on_start: never # options: [always|never|change] default: always
48 on_cancel: never # options: [always|never|change] default: always
49 on_error: never # options: [always|never|change] default: always
50 email: false