blob: e87234685c4a5c1d90c767f6c2fa47d40df175c7 [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:
Oleh Hryhorova028d732018-01-19 17:16:54 +020020# - 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 Polreichb8af96a2017-08-24 16:06:52 +020028 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=single
Filip Pytloun54c45662017-09-07 16:43:54 +020029 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=single_domain
Martin Polreichb8af96a2017-08-24 16:06:52 +020030 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=single_fernet
Martin Polreichb8af96a2017-08-24 16:06:52 +020031 - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' SUITE=under-apache
Petr Michalece9a6c2a2017-03-05 20:14:34 +010032
33before_script:
Martin Polreicha48f1a32017-03-28 16:57:17 +020034 - set -o pipefail
Petr Michalece9a6c2a2017-03-05 20:14:34 +010035 - make test | tail
36
37script:
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 Polreicha48f1a32017-03-28 16:57:17 +020042
43notifications:
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