blob: 47be1ae781e0a246d641b085abbf9c09380defc4 [file] [log] [blame]
Martin Polreicha3a7fdb2018-06-21 15:28:35 +02001language: python
2python:
3- "2.7.13"
Bartosz Kupiduraaefd0392017-11-06 09:27:40 +01004sudo: required
5services:
6 - docker
7
8install:
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 Polreich4552eef2018-10-24 12:02:02 +020020 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 Kupiduraaefd0392017-11-06 09:27:40 +010022 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
23 - bundle install
24
25env:
26 - PLATFORM=trevorj/salty-whales:trusty
27 - PLATFORM=trevorj/salty-whales:xenial
28
29before_script:
30 - set -o pipefail
31 - make test | tail
32 - reno lint $PWD | tail
33
34script:
35 - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration
36
37notifications:
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