blob: 2a5128bff57a4f1d65e59984cd7f46280060e47e [file] [log] [blame]
Martin Polreich95365592018-06-21 15:28:10 +02001language: python
2python:
3- "2.7.13"
azvyagintsevb80d6222018-02-19 15:53:40 +02004sudo: required
5services:
6 - docker
7
8addons:
9 apt:
10 packages:
11 - apt-transport-https
12
13install:
14 - git fetch --unshallow --tags
15 - pip install PyYAML
16 - pip install virtualenv
17 - pip install reno
18 - |
19 test -e Gemfile || cat <<EOF > Gemfile
20 source 'https://rubygems.org'
21 gem 'rake'
22 gem 'test-kitchen'
23 gem 'kitchen-docker'
24 gem 'kitchen-inspec'
25 gem 'inspec'
26 gem 'kitchen-salt' #, :git => 'https://github.com/salt-formulas/kitchen-salt.git'
27 - bundle install
28
29env:
Martin Polreichc01f5fc2018-04-06 15:01:35 +020030 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=debmirror-client
31 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=debmirror-client
32 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=debmirror-client
33# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=debmirror-client
34# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=debmirror-client
azvyagintsevb80d6222018-02-19 15:53:40 +020035
36before_script:
37 - set -o pipefail
38 - make test | tail
39
40script:
41 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
42 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
43
44notifications:
45 webhooks:
46 urls:
47 - https://webhooks.gitter.im/e/6123573504759330786b
48 on_success: change # options: [always|never|change] default: always
49 on_failure: never # options: [always|never|change] default: always
50 on_start: never # options: [always|never|change] default: always
51 on_cancel: never # options: [always|never|change] default: always
52 on_error: never # options: [always|never|change] default: always
53 email: false