blob: 4b3a46e709a5cdabda414b2fdb29b3a2da5d5559 [file] [log] [blame]
Martin Polreichb56d7382018-06-21 15:30:01 +02001language: python
2python:
3- "2.7.13"
Petr Michalec8a0d52e2018-05-30 16:22:56 +02004sudo: required
5services:
6 - docker
7
8addons:
9 apt:
10 packages:
11 - apt-transport-https
12
13install:
14 - pip install PyYAML
15 - pip install virtualenv
16 - |
17 test -e Gemfile || cat <<EOF > Gemfile
18 source 'https://rubygems.org'
19 gem 'rake'
20 gem 'test-kitchen'
21 gem 'kitchen-docker'
22 gem 'kitchen-inspec'
23 gem 'inspec'
24 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
25 - bundle install
26
27env:
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-stable
31
32before_script:
33 - set -o pipefail
34 - make test | tail
35
36script:
37 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
38 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
39
40notifications:
41 webhooks:
42 urls:
43 - https://webhooks.gitter.im/e/6123573504759330786b
44 on_success: change # options: [always|never|change] default: always
45 on_failure: never # options: [always|never|change] default: always
46 on_start: never # options: [always|never|change] default: always
47 on_cancel: never # options: [always|never|change] default: always
48 on_error: never # options: [always|never|change] default: always
49 email: false