Martin Polreich | feafc6b | 2018-06-21 15:30:39 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Elena Ezhova | a3a4323 | 2017-06-02 17:53:00 +0400 | [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 | a206f8a | 2018-04-25 14:11:59 +0200 | [diff] [blame] | 23 | - 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 Taraday | 4a50643 | 2018-09-07 16:48:20 +0400 | [diff] [blame] | 32 | - 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 Taraday | 1570aa7 | 2018-09-07 16:11:00 +0400 | [diff] [blame] | 35 | - 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 Polreich | a206f8a | 2018-04-25 14:11:59 +0200 | [diff] [blame] | 38 | # - 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 Ezhova | a3a4323 | 2017-06-02 17:53:00 +0400 | [diff] [blame] | 44 | |
| 45 | before_script: |
| 46 | - set -o pipefail |
| 47 | - make test | tail |
| 48 | |
| 49 | script: |
Martin Polreich | c97f324 | 2018-01-05 13:28:41 +0100 | [diff] [blame] | 50 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 51 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Elena Ezhova | a3a4323 | 2017-06-02 17:53:00 +0400 | [diff] [blame] | 52 | |
| 53 | notifications: |
| 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 |