blob: 235643176a5a435cc296fa614182e643d6e1126a [file] [log] [blame]
Martin Polreichfeafc6b2018-06-21 15:30:39 +02001language: python
2python:
3- "2.7.13"
Elena Ezhovaa3a43232017-06-02 17:53:00 +04004sudo: 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'
19 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
20 - bundle install
21
22env:
Martin Polreicha206f8a2018-04-25 14:11:59 +020023 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=api-single
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=api-cluster
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=manager-single
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=api-single
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=api-cluster
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=manager-single
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=api-single
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=api-cluster
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=manager-single
Ann Taraday4a506432018-09-07 16:48:20 +040032 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=api-single
33 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=api-cluster
34 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=manager-single
Ann Taraday1570aa72018-09-07 16:11:00 +040035 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=queens SUITE=api-single
36 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=queens SUITE=api-cluster
37 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=queens SUITE=manager-single
Martin Polreicha206f8a2018-04-25 14:11:59 +020038 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=api-single
39 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=api-cluster
40 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=manager-single
41 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=api-single
42 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=api-cluster
43 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=manager-single
Elena Ezhovaa3a43232017-06-02 17:53:00 +040044
45before_script:
46 - set -o pipefail
47 - make test | tail
48
49script:
Martin Polreichc97f3242018-01-05 13:28:41 +010050 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
51 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Elena Ezhovaa3a43232017-06-02 17:53:00 +040052
53notifications:
54 webhooks:
55 urls:
56 - https://webhooks.gitter.im/e/6123573504759330786b
57 on_success: change # options: [always|never|change] default: always
58 on_failure: never # options: [always|never|change] default: always
59 on_start: never # options: [always|never|change] default: always
60 on_cancel: never # options: [always|never|change] default: always
61 on_error: never # options: [always|never|change] default: always
62 email: false