blob: 7c48a82443465fb29452748f29e05525daee03fe [file] [log] [blame]
Martin819a45fa092017-02-11 12:16:20 +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 Polreich86e381f2017-07-17 10:29:25 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin819a45fa092017-02-11 12:16:20 +010017 - bundle install
18
Martin Polreich86e381f2017-07-17 10:29:25 +020019env:
Martin Polreich649a7422018-02-16 13:29:33 +010020 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=ceph-client-single
21 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=ceph-mon-single
22 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=ceph-osd-single
23 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=ceph-client-single
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=ceph-mon-single
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=ceph-osd-single
26# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=ceph-client-single
27# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=ceph-mon-single
28# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=ceph-osd-single
Martin Polreich86e381f2017-07-17 10:29:25 +020029
Martin819a45fa092017-02-11 12:16:20 +010030before_script:
Martin819dadd3e22017-03-28 08:05:33 +020031 - set -o pipefail
Martin Polreich86e381f2017-07-17 10:29:25 +020032 - make test | tail
Martin819a45fa092017-02-11 12:16:20 +010033
34script:
Martin Polreichf5e655f2018-01-05 12:50:30 +010035 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
36 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich86e381f2017-07-17 10:29:25 +020037
38notifications:
39 webhooks:
40 urls:
41 - https://webhooks.gitter.im/e/6123573504759330786b
42 on_success: change # options: [always|never|change] default: always
43 on_failure: never # options: [always|never|change] default: always
44 on_start: never # options: [always|never|change] default: always
45 on_cancel: never # options: [always|never|change] default: always
46 on_error: never # options: [always|never|change] default: always
47 email: false