blob: 533ccac31d36fdf4dd513251902c2cd2fd541cb5 [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'
18 gem 'inspec'
Martin Polreichb53b2382017-03-28 16:38:44 +020019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin8191d6f0a82017-03-17 17:38:11 +010020 - bundle install
21
Martin819e07d0a92017-03-28 11:37:58 +020022env:
Martin Polreichb20ab4e2018-04-18 10:54:30 +020023 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=iptables-server
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=iptables-server
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=iptables-server
26# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=iptables-server
27# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=iptables-server
Martin819e07d0a92017-03-28 11:37:58 +020028
Martin8191d6f0a82017-03-17 17:38:11 +010029before_script:
Martin819f7613e42017-03-28 09:40:12 +020030 - set -o pipefail
31 - make test | tail
Martin8191d6f0a82017-03-17 17:38:11 +010032
33script:
Martin Polreich9c7f9752018-01-05 13:10:09 +010034 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
35 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin819fe6e7872017-03-28 10:17:00 +020036
37notifications:
Martin819e07d0a92017-03-28 11:37:58 +020038 on:
39 branch: master
Martin819fe6e7872017-03-28 10:17:00 +020040 webhooks:
41 urls:
42 - https://webhooks.gitter.im/e/6123573504759330786b
43 on_success: change # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020044 on_failure: never # options: [always|never|change] default: always
Martin819fe6e7872017-03-28 10:17:00 +020045 on_start: never # options: [always|never|change] default: always
46 on_cancel: never # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020047 on_error: never # options: [always|never|change] default: always
48 email: false