blob: 2ed4aa85a67f6b1a8540401a602f5e21a653421c [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:
Filip Pytloun72cd3972018-01-18 13:40:40 +010011 - pip install PyYAML
12 - pip install virtualenv
Filip Pytloun72cd3972018-01-18 13:40:40 +010013 - |
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'
20 gem 'inspec'
Petr Michalec62b84152018-01-18 14:15:02 +010021 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Filip Pytloun72cd3972018-01-18 13:40:40 +010022 - bundle install
23
24env:
Filip Pytloun72cd3972018-01-18 13:40:40 +010025 - PLATFORM=trevorj/salty-whales:xenial
Petr Michalec62b84152018-01-18 14:15:02 +010026 - PLATFORM=trevorj/salty-whales:bionic
Filip Pytloun72cd3972018-01-18 13:40:40 +010027
28before_script:
29 - set -o pipefail
30 - make test | tail
31 - reno lint $PWD | tail
32
33script:
Petr Michalec62b84152018-01-18 14:15:02 +010034 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
35 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Filip Pytloun72cd3972018-01-18 13:40:40 +010036
37notifications:
38 webhooks:
39 urls:
40 - https://webhooks.gitter.im/e/6123573504759330786b
Petr Michalec62b84152018-01-18 14:15:02 +010041 on_success: change # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010042 on_failure: never # options: [always|never|change] default: always
Petr Michalec62b84152018-01-18 14:15:02 +010043 on_start: never # options: [always|never|change] default: always
44 on_cancel: never # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010045 on_error: never # options: [always|never|change] default: always
46 email: false