Martin Polreich | ef40020 | 2018-06-21 15:29:21 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 8 | install: |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 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' |
| 18 | gem 'inspec' |
Martin Polreich | b53b238 | 2017-03-28 16:38:44 +0200 | [diff] [blame] | 19 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 20 | - bundle install |
| 21 | |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 22 | env: |
Dzmitry Stremkouski | e353ce3 | 2018-08-30 17:22:32 +0200 | [diff] [blame^] | 23 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=iptables |
| 24 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=iptables |
| 25 | - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=iptables |
| 26 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=iptables |
| 27 | # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=iptables |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 28 | |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 29 | before_script: |
Martin819 | f7613e4 | 2017-03-28 09:40:12 +0200 | [diff] [blame] | 30 | - set -o pipefail |
| 31 | - make test | tail |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 32 | |
| 33 | script: |
Martin Polreich | 9c7f975 | 2018-01-05 13:10:09 +0100 | [diff] [blame] | 34 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 35 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 36 | |
| 37 | notifications: |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 38 | on: |
| 39 | branch: master |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 40 | webhooks: |
| 41 | urls: |
| 42 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 43 | on_success: change # options: [always|never|change] default: always |
Martin819 | 4cbbe3b | 2017-03-28 12:50:56 +0200 | [diff] [blame] | 44 | on_failure: never # options: [always|never|change] default: always |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 45 | on_start: never # options: [always|never|change] default: always |
| 46 | on_cancel: never # options: [always|never|change] default: always |
Martin819 | 4cbbe3b | 2017-03-28 12:50:56 +0200 | [diff] [blame] | 47 | on_error: never # options: [always|never|change] default: always |
| 48 | email: false |