Martin Polreich | 8470e8e | 2018-06-21 15:30:28 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Martin Polreich | 5d448b9 | 2017-03-30 11:29:47 +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 | ec76d22 | 2018-10-24 12:03:07 +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 |
Martin Polreich | 5d448b9 | 2017-03-30 11:29:47 +0200 | [diff] [blame] | 20 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 21 | - bundle install |
| 22 | |
| 23 | env: |
Martin Polreich | 8d15343 | 2018-04-25 12:28:36 +0200 | [diff] [blame] | 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=horizon-no-ssl |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=horizon-with-ssl |
| 26 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=proxy |
| 27 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=proxy-rate-limit |
| 28 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=redirect |
| 29 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=static |
| 30 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=stats |
Vasyl Saienko | d3348f6 | 2018-02-09 20:08:01 +0200 | [diff] [blame] | 31 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=proxy-with-ssl |
Martin Polreich | 8d15343 | 2018-04-25 12:28:36 +0200 | [diff] [blame] | 32 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=horizon-no-ssl |
| 33 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=horizon-with-ssl |
| 34 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=proxy |
| 35 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=proxy-rate-limit |
| 36 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=redirect |
| 37 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=static |
| 38 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=stats |
Vasyl Saienko | d3348f6 | 2018-02-09 20:08:01 +0200 | [diff] [blame] | 39 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=proxy-with-ssl |
Martin Polreich | 8d15343 | 2018-04-25 12:28:36 +0200 | [diff] [blame] | 40 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=horizon-no-ssl |
| 41 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=horizon-with-ssl |
| 42 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=proxy |
| 43 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=proxy-rate-limit |
| 44 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=redirect |
| 45 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=static |
| 46 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=stats |
Vasyl Saienko | d3348f6 | 2018-02-09 20:08:01 +0200 | [diff] [blame] | 47 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=proxy-with-ssl |
Martin Polreich | 8d15343 | 2018-04-25 12:28:36 +0200 | [diff] [blame] | 48 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=horizon-no-ssl |
| 49 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=horizon-with-ssl |
| 50 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=proxy |
| 51 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=proxy-rate-limit |
| 52 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=redirect |
| 53 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=static |
| 54 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=stats |
| 55 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=horizon-no-ssl |
| 56 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=horizon-with-ssl |
| 57 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=proxy |
| 58 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=proxy-rate-limit |
| 59 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=redirect |
| 60 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=static |
| 61 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=stats |
Martin Polreich | 5d448b9 | 2017-03-30 11:29:47 +0200 | [diff] [blame] | 62 | |
| 63 | before_script: |
| 64 | - set -o pipefail |
| 65 | - make test | tail |
| 66 | |
| 67 | script: |
Martin Polreich | a122a3e | 2018-01-05 13:26:47 +0100 | [diff] [blame] | 68 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 69 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin Polreich | 5d448b9 | 2017-03-30 11:29:47 +0200 | [diff] [blame] | 70 | |
| 71 | notifications: |
| 72 | webhooks: |
| 73 | urls: |
| 74 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 75 | on_success: change # options: [always|never|change] default: always |
| 76 | on_failure: never # options: [always|never|change] default: always |
| 77 | on_start: never # options: [always|never|change] default: always |
| 78 | on_cancel: never # options: [always|never|change] default: always |
| 79 | on_error: never # options: [always|never|change] default: always |
| 80 | email: false |