blob: acbbe42a4cde74865367c0e9493f04858d5fcffd [file] [log] [blame]
Petr Michalece9a6c2a2017-03-05 20:14:34 +01001sudo: required
2services:
3 - docker
4
5install:
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 Polreicha48f1a32017-03-28 16:57:17 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalece9a6c2a2017-03-05 20:14:34 +010017 - bundle install
18
19env:
20 - PLATFORM=trevorj/salty-whales:trusty MYSQL_VERSION='5.5'
21 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7'
22
23before_script:
Martin Polreicha48f1a32017-03-28 16:57:17 +020024 - set -o pipefail
Petr Michalece9a6c2a2017-03-05 20:14:34 +010025 - make test | tail
26
27script:
28 - bundle exec kitchen verify single -t tests/integration
29 - bundle exec kitchen converge under-apache | tail
30 - bundle exec kitchen exec under-apache -c "sudo service mysql start && sudo service apache2 start && keystone-manage db_sync && sleep 1"
31 - bundle exec kitchen verify under-apache -t tests/integration
Martin Polreicha48f1a32017-03-28 16:57:17 +020032
33notifications:
34 webhooks:
35 urls:
36 - https://webhooks.gitter.im/e/6123573504759330786b
37 on_success: change # options: [always|never|change] default: always
38 on_failure: never # options: [always|never|change] default: always
39 on_start: never # options: [always|never|change] default: always
40 on_cancel: never # options: [always|never|change] default: always
41 on_error: never # options: [always|never|change] default: always
42 email: false