Martin Polreich | 6ca7c3f | 2017-08-30 15:07:57 +0200 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 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 | |
| 19 | env: |
| 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 | |
| 31 | before_script: |
| 32 | - set -o pipefail |
| 33 | - make test | tail |
| 34 | |
| 35 | script: |
| 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 | |
| 39 | notifications: |
| 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 |