blob: abc6b38d2fdb3129df45b87378b58a84d5f3dd13 [file] [log] [blame]
Oleh Hryhorov3b72bf52018-05-18 16:23:04 +03001sudo: required
2services:
3 - docker
4
5addons:
6 apt:
7 packages:
8 - apt-transport-https
9
10install:
11 - pip install PyYAML
12 - pip install virtualenv
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'
21 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
22 - bundle install
23
24env:
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
28
29before_script:
30 - set -o pipefail
31 - make test | tail
32
33script:
34 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
35 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -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