blob: 1512be16495a9d2c50d55791cd87f0e60deb2ddc [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:
Martin Polreich3bbd92e2018-02-16 13:52:10 +010025 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3
27# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7
Filip Pytloun72cd3972018-01-18 13:40:40 +010028
29before_script:
30 - set -o pipefail
31 - make test | tail
32 - reno lint $PWD | tail
33
34script:
Petr Michalec62b84152018-01-18 14:15:02 +010035 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
36 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Filip Pytloun72cd3972018-01-18 13:40:40 +010037
38notifications:
39 webhooks:
40 urls:
41 - https://webhooks.gitter.im/e/6123573504759330786b
Petr Michalec62b84152018-01-18 14:15:02 +010042 on_success: change # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010043 on_failure: never # options: [always|never|change] default: always
Petr Michalec62b84152018-01-18 14:15:02 +010044 on_start: never # options: [always|never|change] default: always
45 on_cancel: never # options: [always|never|change] default: always
Filip Pytloun72cd3972018-01-18 13:40:40 +010046 on_error: never # options: [always|never|change] default: always
47 email: false