blob: 2735f98838560e3222d8605cdab8f29fc7d0626a [file] [log] [blame]
Martin819828f49a2017-03-14 11:13:28 +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 Polreich08a770b2017-03-28 16:45:15 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin819828f49a2017-03-14 11:13:28 +010017 - bundle install
18
19env:
Martin Polreich82c3e222018-04-06 10:25:52 +020020 - PLATFORM=epcim/salt:saltstack-ubuntu-trusty-salt-2016.3 SUITE=apache-server-php5
21 - PLATFORM=epcim/salt:saltstack-ubuntu-trusty-salt-2017.7 SUITE=apache-server-php5
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=apache-server-php7
23 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=apache-server-php7
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=apache-server-php7
25# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=apache-server-php7
26# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=apache-server-php7
Martin Polreich08a770b2017-03-28 16:45:15 +020027
Martin819828f49a2017-03-14 11:13:28 +010028before_script:
Martin8194d8b3b22017-03-28 08:10:38 +020029 - set -o pipefail
Martin Polreich08a770b2017-03-28 16:45:15 +020030 - make test | tail
31
Martin819828f49a2017-03-14 11:13:28 +010032script:
Martin Polreich43469922018-01-05 12:42:18 +010033 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
34 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich08a770b2017-03-28 16:45:15 +020035
36notifications:
37 webhooks:
38 urls:
39 - https://webhooks.gitter.im/e/6123573504759330786b
40 on_success: change # options: [always|never|change] default: always
41 on_failure: never # options: [always|never|change] default: always
42 on_start: never # options: [always|never|change] default: always
43 on_cancel: never # options: [always|never|change] default: always
44 on_error: never # options: [always|never|change] default: always
45 email: false