blob: bd09d8d6cb1feeb6d3412a456883f1b53ba1d01b [file] [log] [blame]
Filip Pytloun72cd3972018-01-18 13:40:40 +01001sudo: required
2services:
3 - docker
4
Petr Michalec62b84152018-01-18 14:15:02 +01005addons:
6 apt:
7 packages:
8 - apt-transport-https
9
Filip Pytloun72cd3972018-01-18 13:40:40 +010010install:
11 - git fetch --unshallow --tags
12 - pip install PyYAML
13 - pip install virtualenv
14 - pip install reno
15 - |
16 test -e Gemfile || cat <<EOF > Gemfile
17 source 'https://rubygems.org'
18 gem 'rake'
19 gem 'test-kitchen'
20 gem 'kitchen-docker'
21 gem 'kitchen-inspec'
22 gem 'inspec'
Petr Michalec62b84152018-01-18 14:15:02 +010023 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Filip Pytloun72cd3972018-01-18 13:40:40 +010024 - bundle install
25
26env:
Filip Pytloun72cd3972018-01-18 13:40:40 +010027 - PLATFORM=trevorj/salty-whales:xenial
Petr Michalec62b84152018-01-18 14:15:02 +010028 - PLATFORM=trevorj/salty-whales:bionic
Filip Pytloun72cd3972018-01-18 13:40:40 +010029
30before_script:
31 - set -o pipefail
32 - make test | tail
33 - reno lint $PWD | tail
34
35script:
Petr Michalec62b84152018-01-18 14:15:02 +010036 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
37 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Filip Pytloun72cd3972018-01-18 13:40:40 +010038
39notifications:
40 webhooks:
41 urls:
42 - https://webhooks.gitter.im/e/6123573504759330786b
Petr Michalec62b84152018-01-18 14:15:02 +010043 on_success: change # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010044 on_failure: never # options: [always|never|change] default: always
Petr Michalec62b84152018-01-18 14:15:02 +010045 on_start: never # options: [always|never|change] default: always
46 on_cancel: never # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010047 on_error: never # options: [always|never|change] default: always
48 email: false