blob: 740f82765c7a1f3b765c7577ff8fbcd5f49430be [file] [log] [blame]
Martin Polreich8933a6c2017-04-11 14:55:08 +02001sudo: 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'
Martin Polreichf2c0e9f2018-10-24 12:02:04 +020015 gem 'inspec', '<3.0.0'
16 #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 Polreich8933a6c2017-04-11 14:55:08 +020017 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
18 - bundle install
19
20env:
Martin Polreichd137f302018-04-11 15:28:13 +020021 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-cluster MYSQL_VER=5.6 GALERA_VER=3
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=slave-cluster MYSQL_VER=5.6 GALERA_VER=3
23 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=master-cluster MYSQL_VER=5.7 GALERA_VER=3
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=slave-cluster MYSQL_VER=5.7 GALERA_VER=3
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-cluster MYSQL_VER=5.6 GALERA_VER=3
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=slave-cluster MYSQL_VER=5.6 GALERA_VER=3
27 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=master-cluster MYSQL_VER=5.7 GALERA_VER=3
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=slave-cluster MYSQL_VER=5.7 GALERA_VER=3
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=master-cluster MYSQL_VER=5.6 GALERA_VER=3
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=slave-cluster MYSQL_VER=5.6 GALERA_VER=3
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=master-cluster MYSQL_VER=5.7 GALERA_VER=3
32 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=slave-cluster MYSQL_VER=5.7 GALERA_VER=3
33# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-cluster MYSQL_VER=5.6 GALERA_VER=3
34# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=slave-cluster MYSQL_VER=5.6 GALERA_VER=3
35# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=master-cluster MYSQL_VER=5.7 GALERA_VER=3
36# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=slave-cluster MYSQL_VER=5.7 GALERA_VER=3
37# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=master-cluster MYSQL_VER=5.6 GALERA_VER=3
38# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=slave-cluster MYSQL_VER=5.6 GALERA_VER=3
39# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=master-cluster MYSQL_VER=5.7 GALERA_VER=3
40# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=slave-cluster MYSQL_VER=5.7 GALERA_VER=3
Martin Polreich8933a6c2017-04-11 14:55:08 +020041
42before_script:
43 - set -o pipefail
44 - make test | tail
45
46script:
Martin Polreichf21f1582018-01-05 13:05:47 +010047 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
48 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich8933a6c2017-04-11 14:55:08 +020049
50notifications:
51 webhooks:
52 urls:
53 - https://webhooks.gitter.im/e/6123573504759330786b
54 on_success: change # options: [always|never|change] default: always
55 on_failure: never # options: [always|never|change] default: always
56 on_start: never # options: [always|never|change] default: always
57 on_cancel: never # options: [always|never|change] default: always
58 on_error: never # options: [always|never|change] default: always
59 email: false