blob: 82a14774772a8c9dd125b19188cdab41f87c42d8 [file] [log] [blame]
Mikhail Ivanov79133102018-05-29 13:27:45 +04001sudo: 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'
Martin Polreich34584162018-10-24 12:02:29 +020020 gem 'inspec', '<3.0.0'
21 #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
Mikhail Ivanov79133102018-05-29 13:27:45 +040022 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
23 - bundle install
24
25env:
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3
28# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7
29
30before_script:
31 - set -o pipefail
32 - make test | tail
33
34script:
35 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
36 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
37
38notifications:
39 webhooks:
40 urls:
41 - https://webhooks.gitter.im/e/6123573504759330786b
42 on_success: change # options: [always|never|change] default: always
43 on_failure: never # options: [always|never|change] default: always
44 on_start: never # options: [always|never|change] default: always
45 on_cancel: never # options: [always|never|change] default: always
46 on_error: never # options: [always|never|change] default: always
47 email: false