blob: 7cf63e47711bf18489e1ecb2aa109e46e035b449 [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:
Martin Polreichb8af96a2017-08-24 16:06:52 +020020 - PLATFORM=trevorj/salty-whales:trusty MYSQL_VERSION='5.5' SUITE=single
21 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=single
Filip Pytloun54c45662017-09-07 16:43:54 +020022 - PLATFORM=trevorj/salty-whales:trusty MYSQL_VERSION='5.5' SUITE=single_domain
23 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=single_domain
Martin Polreichb8af96a2017-08-24 16:06:52 +020024 - PLATFORM=trevorj/salty-whales:trusty MYSQL_VERSION='5.5' SUITE=single_fernet
25 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=single_fernet
26 - PLATFORM=trevorj/salty-whales:trusty MYSQL_VERSION='5.5' SUITE=under-apache
27 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=under-apache
Petr Michalece9a6c2a2017-03-05 20:14:34 +010028
29before_script:
Martin Polreicha48f1a32017-03-28 16:57:17 +020030 - set -o pipefail
Petr Michalece9a6c2a2017-03-05 20:14:34 +010031 - make test | tail
32
33script:
34 - bundle exec kitchen verify single -t tests/integration
35 - bundle exec kitchen converge under-apache | tail
36 - bundle exec kitchen exec under-apache -c "sudo service mysql start && sudo service apache2 start && keystone-manage db_sync && sleep 1"
37 - bundle exec kitchen verify under-apache -t tests/integration
Martin Polreicha48f1a32017-03-28 16:57:17 +020038
39notifications:
40 webhooks:
41 urls:
42 - https://webhooks.gitter.im/e/6123573504759330786b
43 on_success: change # options: [always|never|change] default: always
44 on_failure: never # options: [always|never|change] default: always
45 on_start: never # options: [always|never|change] default: always
46 on_cancel: never # options: [always|never|change] default: always
47 on_error: never # options: [always|never|change] default: always
48 email: false