blob: b9ee103450197af7dcbefc5d5b9ad79e03c64da1 [file] [log] [blame]
Martin8191d6f0a82017-03-17 17:38:11 +01001sudo: required
2services:
3 - docker
4
Martin819e07d0a92017-03-28 11:37:58 +02005install:
Martin8191d6f0a82017-03-17 17:38:11 +01006 - 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 Polreichb53b2382017-03-28 16:38:44 +020016 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Martin8191d6f0a82017-03-17 17:38:11 +010017 - bundle install
18
Martin819e07d0a92017-03-28 11:37:58 +020019env:
Martin Polreichb20ab4e2018-04-18 10:54:30 +020020 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=iptables-server
21 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=iptables-server
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=iptables-server
23# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=iptables-server
24# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=iptables-server
Martin819e07d0a92017-03-28 11:37:58 +020025
Martin8191d6f0a82017-03-17 17:38:11 +010026before_script:
Martin819f7613e42017-03-28 09:40:12 +020027 - set -o pipefail
28 - make test | tail
Martin8191d6f0a82017-03-17 17:38:11 +010029
30script:
Martin Polreich9c7f9752018-01-05 13:10:09 +010031 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
32 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin819fe6e7872017-03-28 10:17:00 +020033
34notifications:
Martin819e07d0a92017-03-28 11:37:58 +020035 on:
36 branch: master
Martin819fe6e7872017-03-28 10:17:00 +020037 webhooks:
38 urls:
39 - https://webhooks.gitter.im/e/6123573504759330786b
40 on_success: change # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020041 on_failure: never # options: [always|never|change] default: always
Martin819fe6e7872017-03-28 10:17:00 +020042 on_start: never # options: [always|never|change] default: always
43 on_cancel: never # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020044 on_error: never # options: [always|never|change] default: always
45 email: false