Martin Polreich | a3a7fdb | 2018-06-21 15:28:35 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Bartosz Kupidura | aefd039 | 2017-11-06 09:27:40 +0100 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | install: |
| 9 | - git fetch --unshallow --tags |
| 10 | - pip install PyYAML |
| 11 | - pip install virtualenv |
| 12 | - pip install reno |
| 13 | - | |
| 14 | test -e Gemfile || cat <<EOF > Gemfile |
| 15 | source 'https://rubygems.org' |
| 16 | gem 'rake' |
| 17 | gem 'test-kitchen' |
| 18 | gem 'kitchen-docker' |
| 19 | gem 'kitchen-inspec' |
Martin Polreich | 4552eef | 2018-10-24 12:02:02 +0200 | [diff] [blame] | 20 | gem 'inspec', '<3.0.0' |
| 21 | #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 |
Bartosz Kupidura | aefd039 | 2017-11-06 09:27:40 +0100 | [diff] [blame] | 22 | gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
| 23 | - bundle install |
| 24 | |
| 25 | env: |
| 26 | - PLATFORM=trevorj/salty-whales:trusty |
| 27 | - PLATFORM=trevorj/salty-whales:xenial |
| 28 | |
| 29 | before_script: |
| 30 | - set -o pipefail |
| 31 | - make test | tail |
| 32 | - reno lint $PWD | tail |
| 33 | |
| 34 | script: |
| 35 | - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration |
| 36 | |
| 37 | notifications: |
| 38 | webhooks: |
| 39 | urls: |
| 40 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 41 | on_success: change # options: [always|never|change] default: always |
| 42 | on_failure: never # options: [always|never|change] default: always |
| 43 | on_start: never # options: [always|never|change] default: always |
| 44 | on_cancel: never # options: [always|never|change] default: always |
| 45 | on_error: never # options: [always|never|change] default: always |
| 46 | email: false |