blob: 44f9b2765cd0e426c3d5f7ca69e2dbeccb110d83 [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'
Martin Polreich89d0cd92018-10-24 12:02:51 +020023 gem 'inspec', '<3.0.0'
24 #Version was frozen, because of issues in the version of inspec >3.0.0 -- see https://mirantis.jira.com/browse/PROD-24324 for more info
Petr Michalec8a0d52e2018-05-30 16:22:56 +020025 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
26 - bundle install
27
28env:
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3
30 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-stable
32
33before_script:
34 - set -o pipefail
35 - make test | tail
36
37script:
38 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
39 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
40
41notifications:
42 webhooks:
43 urls:
44 - https://webhooks.gitter.im/e/6123573504759330786b
45 on_success: change # options: [always|never|change] default: always
46 on_failure: never # options: [always|never|change] default: always
47 on_start: never # options: [always|never|change] default: always
48 on_cancel: never # options: [always|never|change] default: always
49 on_error: never # options: [always|never|change] default: always
50 email: false