blob: dc2b8e136cdff73421992dde21160e80c7226d18 [file] [log] [blame]
Martin Polreich647852c2018-06-21 15:32:08 +02001language: python
2python:
3- "2.7.13"
Petr Ruzickaba0a49d2018-01-31 22:16:20 +01004sudo: 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 Polreich0052fda2018-10-24 12:15:56 +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, '<3.0.0'
Petr Ruzickaba0a49d2018-01-31 22:16:20 +010025 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
26 - bundle install
27
28env:
azvyagintsev8731ac42018-04-30 14:03:00 +030029 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server_kernel_module
30 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
31 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server_kernel_module
32 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
33#
34 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server_kernel_module
35 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
36 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server_kernel_module
37 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
Petr Ruzickaba0a49d2018-01-31 22:16:20 +010038
39before_script:
40 - set -o pipefail
41 - make test | tail
42
43script:
44 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
45 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
46
47notifications:
48 webhooks:
49 urls:
50 - https://webhooks.gitter.im/e/6123573504759330786b
51 on_success: change # options: [always|never|change] default: always
52 on_failure: never # options: [always|never|change] default: always
53 on_start: never # options: [always|never|change] default: always
54 on_cancel: never # options: [always|never|change] default: always
55 on_error: never # options: [always|never|change] default: always
56 email: false