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