blob: 678ab6425431ce81b7d620456138292923435445 [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'
Martin Polreich94c608b2018-10-24 12:03:13 +020018 gem 'inspec', '<3.0.0'
19 #Version was frozen, because of issues in the version of inspec >3.0.0 -- see https://mirantis.jira.com/browse/PROD-24324 for more info
Elena Ezhovaa3a43232017-06-02 17:53:00 +040020 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
21 - bundle install
22
23env:
Martin Polreicha206f8a2018-04-25 14:11:59 +020024 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=api-single
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=api-cluster
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=manager-single
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=api-single
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=api-cluster
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=manager-single
Ann Taraday4a506432018-09-07 16:48:20 +040030 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=api-single
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=api-cluster
32 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=manager-single
Ann Taraday1570aa72018-09-07 16:11:00 +040033 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=queens SUITE=api-single
34 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=queens SUITE=api-cluster
35 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=queens SUITE=manager-single
Martin Polreicha206f8a2018-04-25 14:11:59 +020036 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=api-single
37 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=api-cluster
38 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=manager-single
39 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=api-single
40 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=api-cluster
41 # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=manager-single
Elena Ezhovaa3a43232017-06-02 17:53:00 +040042
43before_script:
44 - set -o pipefail
45 - make test | tail
46
47script:
Martin Polreichc97f3242018-01-05 13:28:41 +010048 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
49 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Elena Ezhovaa3a43232017-06-02 17:53:00 +040050
51notifications:
52 webhooks:
53 urls:
54 - https://webhooks.gitter.im/e/6123573504759330786b
55 on_success: change # options: [always|never|change] default: always
56 on_failure: never # options: [always|never|change] default: always
57 on_start: never # options: [always|never|change] default: always
58 on_cancel: never # options: [always|never|change] default: always
59 on_error: never # options: [always|never|change] default: always
60 email: false