blob: 0962f7fc27d12b1d91e211150b0f80ef205f6677 [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:
Martin Polreichc01f5fc2018-04-06 15:01:35 +020027 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=debmirror-client
28 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=debmirror-client
29 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=debmirror-client
30# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=debmirror-client
31# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=debmirror-client
azvyagintsevb80d6222018-02-19 15:53:40 +020032
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