blob: 6db058dd6617011cd075fd3d3324336995768048 [file] [log] [blame]
Pavel Cizinsky7ce8e372017-11-15 14:32:47 +01001sudo: required
2services:
3 - docker
4
5install:
6 - git fetch --unshallow --tags
7 - pip install PyYAML
8 - pip install virtualenv
9 - pip install reno
10 - |
11 test -e Gemfile || cat <<EOF > Gemfile
12 source 'https://rubygems.org'
13 gem 'rake'
14 gem 'test-kitchen'
15 gem 'kitchen-docker'
16 gem 'kitchen-inspec'
Martin Polreicha9553af2018-10-24 12:15:52 +020017 gem 'inspec', '<3.0.0'
18 #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, '<3.0.0'
Pavel Cizinsky7ce8e372017-11-15 14:32:47 +010019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
20 - bundle install
21
22env:
23 - PLATFORM=trevorj/salty-whales:trusty
24 - PLATFORM=trevorj/salty-whales:xenial
25
26before_script:
27 - set -o pipefail
28 - make test | tail
29 - reno lint $PWD | tail
30
31script:
32 - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration
33
34notifications:
35 webhooks:
36 urls:
37 - https://webhooks.gitter.im/e/6123573504759330786b
38 on_success: change # options: [always|never|change] default: always
39 on_failure: never # options: [always|never|change] default: always
40 on_start: never # options: [always|never|change] default: always
41 on_cancel: never # options: [always|never|change] default: always
42 on_error: never # options: [always|never|change] default: always
43 email: false