blob: 17ef32d813b3039a18e9325f27ac86eeade8549d [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 Polreich803d39d2018-02-16 16:31:47 +010020# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single
21# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single_domain
22# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single_fernet
23# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=under-apache
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_domain
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_fernet
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=under-apache
28# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single
29# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_domain
30# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_fernet
31# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 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