Martin Polreich | acc0cf8 | 2018-06-21 15:26:54 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | install: |
| 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 Polreich | 397f373 | 2018-10-24 11:37:01 +0200 | [diff] [blame] | 18 | 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, '<3.0.0' |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 20 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 21 | - bundle install |
| 22 | |
| 23 | env: |
Martin Polreich | c24ab22 | 2018-04-06 09:49:10 +0200 | [diff] [blame] | 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server-cluster |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=ocata SUITE=server-single |
| 26 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 27 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 28 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster-ssl |
| 29 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-single-ssl |
| 30 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=ocata SUITE=server-cluster-ssl |
| 31 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=ocata SUITE=server-single-ssl |
| 32 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 33 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 34 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster-ssl |
| 35 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-single-ssl |
| 36 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 37 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 38 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster-ssl |
| 39 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-single-ssl |
| 40 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 41 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 42 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster-ssl |
| 43 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-single-ssl |
| 44 | |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 45 | |
| 46 | before_script: |
| 47 | - set -o pipefail |
| 48 | - make test | tail |
| 49 | |
| 50 | script: |
Martin Polreich | 0892bf7 | 2018-01-05 12:35:58 +0100 | [diff] [blame] | 51 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 52 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 9824fa7 | 2017-03-30 10:12:02 +0200 | [diff] [blame] | 53 | |
| 54 | notifications: |
| 55 | webhooks: |
| 56 | urls: |
| 57 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 58 | on_success: change # options: [always|never|change] default: always |
| 59 | on_failure: never # options: [always|never|change] default: always |
| 60 | on_start: never # options: [always|never|change] default: always |
| 61 | on_cancel: never # options: [always|never|change] default: always |
| 62 | on_error: never # options: [always|never|change] default: always |
| 63 | email: false |