blob: c5062979d49b3a584b6f7ebc75f0b9af799a2545 [file] [log] [blame]
Petr Ruzickaba0a49d2018-01-31 22:16:20 +01001sudo: 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:
azvyagintsev8731ac42018-04-30 14:03:00 +030025 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server_kernel_module
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server_kernel_module
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
29#
30 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server_kernel_module
31 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
32 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server_kernel_module
33 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
Petr Ruzickaba0a49d2018-01-31 22:16:20 +010034
35before_script:
36 - set -o pipefail
37 - make test | tail
38
39script:
40 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
41 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
42
43notifications:
44 webhooks:
45 urls:
46 - https://webhooks.gitter.im/e/6123573504759330786b
47 on_success: change # options: [always|never|change] default: always
48 on_failure: never # options: [always|never|change] default: always
49 on_start: never # options: [always|never|change] default: always
50 on_cancel: never # options: [always|never|change] default: always
51 on_error: never # options: [always|never|change] default: always
52 email: false