blob: d7ef50aeb910246e56e780c7b83a4e6f06c0a9fe [file] [log] [blame]
Martin Polreich2679f722018-06-21 15:29:36 +02001language: python
2python:
3- "2.7.13"
Petr Michalece9a6c2a2017-03-05 20:14:34 +01004sudo: required
5services:
6 - docker
7
8install:
9 - pip install PyYAML
10 - pip install virtualenv
11 - |
12 test -e Gemfile || cat <<EOF > Gemfile
13 source 'https://rubygems.org'
14 gem 'rake'
15 gem 'test-kitchen'
16 gem 'kitchen-docker'
17 gem 'kitchen-inspec'
Martin Polreichf2495b62018-10-24 12:02:31 +020018 gem 'inspec', '<3.0.0'
19 #Version was frozen, because of issues in the version of inspec >3.0.0 -- see https://mirantis.jira.com/browse/PROD-24324 for more info
Martin Polreicha48f1a32017-03-28 16:57:17 +020020 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalece9a6c2a2017-03-05 20:14:34 +010021 - bundle install
22
23env:
Martin Polreich803d39d2018-02-16 16:31:47 +010024# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single
25# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single_domain
26# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=single_fernet
27# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-trusty-salt-2016.3 MYSQL_VERSION='5.5' SUITE=under-apache
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single
29 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_domain
30 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_fernet
31 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 MYSQL_VERSION='5.7' SUITE=under-apache
32# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single
33# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_domain
34# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=single_fernet
35# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 MYSQL_VERSION='5.7' SUITE=under-apache
Petr Michalece9a6c2a2017-03-05 20:14:34 +010036
37before_script:
Martin Polreicha48f1a32017-03-28 16:57:17 +020038 - set -o pipefail
Petr Michalece9a6c2a2017-03-05 20:14:34 +010039 - make test | tail
40
41script:
42 - bundle exec kitchen verify single -t tests/integration
43 - bundle exec kitchen converge under-apache | tail
44 - bundle exec kitchen exec under-apache -c "sudo service mysql start && sudo service apache2 start && keystone-manage db_sync && sleep 1"
45 - bundle exec kitchen verify under-apache -t tests/integration
Martin Polreicha48f1a32017-03-28 16:57:17 +020046
47notifications:
48 webhooks:
49 urls:
50 - https://webhooks.gitter.im/e/6123573504759330786b
51 on_success: change # options: [always|never|change] default: always
52 on_failure: never # options: [always|never|change] default: always
53 on_start: never # options: [always|never|change] default: always
54 on_cancel: never # options: [always|never|change] default: always
55 on_error: never # options: [always|never|change] default: always
56 email: false