Martin Polreich | ceb8000 | 2018-06-21 15:31:00 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +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 | 950e66e | 2018-10-24 12:03:29 +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 |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 20 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 21 | - bundle install |
| 22 | |
| 23 | env: |
Martin Polreich | b29042c | 2018-04-25 14:51:07 +0200 | [diff] [blame] | 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 26 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 27 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 28 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 29 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 30 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 31 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-single |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 32 | |
| 33 | before_script: |
| 34 | - set -o pipefail |
| 35 | - make test | tail |
| 36 | |
| 37 | script: |
Mykyta Karpin | d6d078e | 2018-02-16 22:13:01 +0200 | [diff] [blame] | 38 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 39 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 40 | |
| 41 | notifications: |
| 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 |
Mykyta Karpin | d6d078e | 2018-02-16 22:13:01 +0200 | [diff] [blame] | 50 | email: false |