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