Martin Polreich | 6dc1f22 | 2018-06-21 15:30:05 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Vasyl Saienko | 7a4ae40 | 2018-01-30 16:37:14 +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' |
| 18 | gem 'inspec' |
| 19 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 20 | - bundle install |
| 21 | |
| 22 | env: |
Martin Polreich | cbd4e17 | 2018-04-18 15:46:13 +0200 | [diff] [blame] | 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server-cluster |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server-single |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=share-nexenta |
| 26 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=share-glusterfs |
| 27 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 OS_VERSION=pike SUITE=server-cluster-ssl |
| 28 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 29 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 30 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=share-nexenta |
| 31 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=share-glusterfs |
| 32 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 OS_VERSION=pike SUITE=server-cluster-ssl |
sgarbuz | e8677fc | 2018-05-15 16:37:17 +0300 | [diff] [blame] | 33 | # Uncomment when salt 2018.3.1 released bug https://github.com/saltstack/salt/issues/46929 |
| 34 | # - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 35 | # - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 36 | # - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=share-nexenta |
| 37 | # - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=share-glusterfs |
| 38 | # - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 OS_VERSION=pike SUITE=server-cluster-ssl |
| 39 | # |
Martin Polreich | cbd4e17 | 2018-04-18 15:46:13 +0200 | [diff] [blame] | 40 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster |
| 41 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-single |
| 42 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=share-nexenta |
| 43 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=share-glusterfs |
| 44 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 OS_VERSION=pike SUITE=server-cluster-ssl |
| 45 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster |
| 46 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-single |
| 47 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=share-nexenta |
| 48 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=share-glusterfs |
| 49 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 OS_VERSION=pike SUITE=server-cluster-ssl |
Vasyl Saienko | 7a4ae40 | 2018-01-30 16:37:14 +0200 | [diff] [blame] | 50 | |
| 51 | before_script: |
| 52 | - set -o pipefail |
| 53 | - make test | tail |
| 54 | |
| 55 | script: |
| 56 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 57 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
| 58 | |
| 59 | notifications: |
| 60 | webhooks: |
| 61 | urls: |
| 62 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 63 | on_success: change # options: [always|never|change] default: always |
| 64 | on_failure: never # options: [always|never|change] default: always |
| 65 | on_start: never # options: [always|never|change] default: always |
| 66 | on_cancel: never # options: [always|never|change] default: always |
| 67 | on_error: never # options: [always|never|change] default: always |
| 68 | email: false |