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