Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 5 | addons: |
| 6 | apt: |
| 7 | packages: |
| 8 | - apt-transport-https |
| 9 | |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 10 | install: |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 11 | - pip install PyYAML |
| 12 | - pip install virtualenv |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 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' |
| 20 | gem 'inspec' |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 21 | gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git' |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 22 | - bundle install |
| 23 | |
| 24 | env: |
Martin Polreich | 3bbd92e | 2018-02-16 13:52:10 +0100 | [diff] [blame^] | 25 | - 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 Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 28 | |
| 29 | before_script: |
| 30 | - set -o pipefail |
| 31 | - make test | tail |
| 32 | - reno lint $PWD | tail |
| 33 | |
| 34 | script: |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 35 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 36 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 37 | |
| 38 | notifications: |
| 39 | webhooks: |
| 40 | urls: |
| 41 | - https://webhooks.gitter.im/e/6123573504759330786b |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 42 | on_success: change # options: [always|never|change] default: always |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 43 | on_failure: never # options: [always|never|change] default: always |
Petr Michalec | 62b8415 | 2018-01-18 14:15:02 +0100 | [diff] [blame] | 44 | on_start: never # options: [always|never|change] default: always |
| 45 | on_cancel: never # options: [always|never|change] default: always |
Filip Pytloun | 72cd397 | 2018-01-18 13:40:40 +0100 | [diff] [blame] | 46 | on_error: never # options: [always|never|change] default: always |
| 47 | email: false |