blob: 90d0185f40b12cc93b6d28bbdd59238c40aeefe4 [file] [log] [blame]
Martin Polreich6ca7c3f2017-08-30 15:07:57 +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'
15 gem 'inspec'
16 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
17 - bundle install
18
19env:
20 - PLATFORM=trevorj/salty-whales:trusty SUITE=replication_both MYSQL_VER=5.5
21 - PLATFORM=trevorj/salty-whales:xenial SUITE=replication_both MYSQL_VER=5.7
22 - PLATFORM=trevorj/salty-whales:trusty SUITE=replication_master MYSQL_VER=5.5
23 - PLATFORM=trevorj/salty-whales:xenial SUITE=replication_master MYSQL_VER=5.7
24 - PLATFORM=trevorj/salty-whales:trusty SUITE=replication_slave MYSQL_VER=5.5
25 - PLATFORM=trevorj/salty-whales:xenial SUITE=replication_slave MYSQL_VER=5.7
26 - PLATFORM=trevorj/salty-whales:trusty SUITE=server_client_database MYSQL_VER=5.5
27 - PLATFORM=trevorj/salty-whales:xenial SUITE=server_client_database MYSQL_VER=5.7
28 - PLATFORM=trevorj/salty-whales:trusty SUITE=server_client_user MYSQL_VER=5.5
29 - PLATFORM=trevorj/salty-whales:xenial SUITE=server_client_user MYSQL_VER=5.7
30
31before_script:
32 - set -o pipefail
33 - make test | tail
34
35script:
36 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
37 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
38
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