blob: 264c5077ccfe3ef94f73fa48631534aaa20c8473 [file] [log] [blame]
Martin Polreich808ac552018-06-21 15:26:57 +02001language: python
2python:
3- "2.7.13"
Martin819828f49a2017-03-14 11:13:28 +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 Polreich6ee2b582018-10-24 11:47:42 +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, '<3.0.0'
Martin Polreich08a770b2017-03-28 16:45:15 +020020 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin819828f49a2017-03-14 11:13:28 +010021 - bundle install
22
23env:
Martin Polreich82c3e222018-04-06 10:25:52 +020024 - PLATFORM=epcim/salt:saltstack-ubuntu-trusty-salt-2017.7 SUITE=apache-server-php5
Martin Polreich82c3e222018-04-06 10:25:52 +020025 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=apache-server-php7
Oleksii Grudev0cfe7c12018-06-08 11:34:32 +030026 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=apache-server-php7-ssl
Martin Polreich82c3e222018-04-06 10:25:52 +020027 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=apache-server-php7
Oleksii Grudev0cfe7c12018-06-08 11:34:32 +030028 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=apache-server-php7-ssl
Martin Polreich82c3e222018-04-06 10:25:52 +020029# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=apache-server-php7
30# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=apache-server-php7
Martin Polreich08a770b2017-03-28 16:45:15 +020031
Martin819828f49a2017-03-14 11:13:28 +010032before_script:
Martin8194d8b3b22017-03-28 08:10:38 +020033 - set -o pipefail
Martin Polreich08a770b2017-03-28 16:45:15 +020034 - make test | tail
35
Martin819828f49a2017-03-14 11:13:28 +010036script:
Martin Polreich43469922018-01-05 12:42:18 +010037 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
38 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich08a770b2017-03-28 16:45:15 +020039
40notifications:
41 webhooks:
42 urls:
43 - https://webhooks.gitter.im/e/6123573504759330786b
44 on_success: change # options: [always|never|change] default: always
45 on_failure: never # options: [always|never|change] default: always
46 on_start: never # options: [always|never|change] default: always
47 on_cancel: never # options: [always|never|change] default: always
48 on_error: never # options: [always|never|change] default: always
49 email: false