blob: c143109c566a2d42f368914d54413cc197c01c0e [file] [log] [blame]
Martin Polreichef400202018-06-21 15:29:21 +02001language: python
2python:
3- "2.7.13"
Martin8191d6f0a82017-03-17 17:38:11 +01004sudo: required
5services:
6 - docker
7
Martin819e07d0a92017-03-28 11:37:58 +02008install:
Martin8191d6f0a82017-03-17 17:38:11 +01009 - 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 Polreich43899052018-10-24 12:02:23 +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
Martin Polreichb53b2382017-03-28 16:38:44 +020020 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin8191d6f0a82017-03-17 17:38:11 +010021 - bundle install
22
Martin819e07d0a92017-03-28 11:37:58 +020023env:
Dzmitry Stremkouskie353ce32018-08-30 17:22:32 +020024 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=iptables
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=iptables
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=iptables
27# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=iptables
28# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=iptables
Martin819e07d0a92017-03-28 11:37:58 +020029
Martin8191d6f0a82017-03-17 17:38:11 +010030before_script:
Martin819f7613e42017-03-28 09:40:12 +020031 - set -o pipefail
32 - make test | tail
Martin8191d6f0a82017-03-17 17:38:11 +010033
34script:
Martin Polreich9c7f9752018-01-05 13:10:09 +010035 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
36 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin819fe6e7872017-03-28 10:17:00 +020037
38notifications:
Martin819e07d0a92017-03-28 11:37:58 +020039 on:
40 branch: master
Martin819fe6e7872017-03-28 10:17:00 +020041 webhooks:
42 urls:
43 - https://webhooks.gitter.im/e/6123573504759330786b
44 on_success: change # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020045 on_failure: never # options: [always|never|change] default: always
Martin819fe6e7872017-03-28 10:17:00 +020046 on_start: never # options: [always|never|change] default: always
47 on_cancel: never # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020048 on_error: never # options: [always|never|change] default: always
49 email: false