blob: c1c100fa81ba4945af58077b8d37b90db66b9942 [file] [log] [blame]
azvyagintsevb80d6222018-02-19 15:53:40 +02001sudo: required
2services:
3 - docker
4
5addons:
6 apt:
7 packages:
8 - apt-transport-https
9
10install:
11 - git fetch --unshallow --tags
12 - pip install PyYAML
13 - pip install virtualenv
14 - pip install reno
15 - |
16 test -e Gemfile || cat <<EOF > Gemfile
17 source 'https://rubygems.org'
18 gem 'rake'
19 gem 'test-kitchen'
20 gem 'kitchen-docker'
21 gem 'kitchen-inspec'
22 gem 'inspec'
23 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
24 - bundle install
25
26env:
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=debmirror-client
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=debmirror-client
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