Martin Polreich | 2679f72 | 2018-06-21 15:29:36 +0200 | [diff] [blame^] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Petr Michalec | e9a6c2a | 2017-03-05 20:14:34 +0100 | [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' |
Martin Polreich | a48f1a3 | 2017-03-28 16:57:17 +0200 | [diff] [blame] | 19 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Petr Michalec | e9a6c2a | 2017-03-05 20:14:34 +0100 | [diff] [blame] | 20 | - bundle install |
| 21 | |
| 22 | env: |
Martin Polreich | 803d39d | 2018-02-16 16:31:47 +0100 | [diff] [blame] | 23 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single |
| 24 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single_domain |
| 25 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single_fernet |
| 26 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=under-apache |
| 27 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single |
| 28 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_domain |
| 29 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_fernet |
| 30 | - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=under-apache |
| 31 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single |
| 32 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_domain |
| 33 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_fernet |
| 34 | # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=under-apache |
Petr Michalec | e9a6c2a | 2017-03-05 20:14:34 +0100 | [diff] [blame] | 35 | |
| 36 | before_script: |
Martin Polreich | a48f1a3 | 2017-03-28 16:57:17 +0200 | [diff] [blame] | 37 | - set -o pipefail |
Petr Michalec | e9a6c2a | 2017-03-05 20:14:34 +0100 | [diff] [blame] | 38 | - make test | tail |
| 39 | |
| 40 | script: |
| 41 | - bundle exec kitchen verify single -t tests/integration |
| 42 | - bundle exec kitchen converge under-apache | tail |
| 43 | - bundle exec kitchen exec under-apache -c "sudo service mysql start && sudo service apache2 start && keystone-manage db_sync && sleep 1" |
| 44 | - bundle exec kitchen verify under-apache -t tests/integration |
Martin Polreich | a48f1a3 | 2017-03-28 16:57:17 +0200 | [diff] [blame] | 45 | |
| 46 | notifications: |
| 47 | webhooks: |
| 48 | urls: |
| 49 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 50 | on_success: change # options: [always|never|change] default: always |
| 51 | on_failure: never # options: [always|never|change] default: always |
| 52 | on_start: never # options: [always|never|change] default: always |
| 53 | on_cancel: never # options: [always|never|change] default: always |
| 54 | on_error: never # options: [always|never|change] default: always |
| 55 | email: false |