blob: 28df064c94f13ebb47281e1188f091e6594aeea3 [file] [log] [blame]
Martin Polreichcfe11042018-06-21 15:28:19 +02001language: python
2python:
3- "2.7.13"
Martin Polreich48ae3e12017-04-13 10:53:32 +02004sudo: required
5services:
6 - docker
7
8install:
9 - pip install PyYAML
10 - pip install virtualenv
11 - |
12 test -e Gemfile || cat <<EOF > Gemfile
13 source 'https://rubygems.org'
14 gem 'rake'
15 gem 'test-kitchen'
16 gem 'kitchen-docker'
17 gem 'kitchen-inspec'
18 gem 'inspec'
Petr Michalec0d93a222017-05-03 08:29:47 +020019 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git', :branch => 'master'
Martin Polreich48ae3e12017-04-13 10:53:32 +020020 - bundle install
21
22env:
Martin Polreich9c7de372018-02-16 14:35:38 +010023 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-compose
24 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=client-container
25 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=host-single
26 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-compose
27 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=client-container
28 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=host-single
29# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-compose
30# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=client-container
31# - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=host-single
Martin Polreich48ae3e12017-04-13 10:53:32 +020032
33before_script:
34 - make test | tail
35
36script:
Martin Polreich73fe0212018-01-05 12:57:23 +010037 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
38 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichac9be642017-08-24 17:19:59 +020039
40notifications:
41 webhooks:
42 urls:
43 - https://webhooks.gitter.im/e/6123573504759330786b
44 on_success: change # options: [always|never|change] default: always
45 on_failure: never # options: [always|never|change] default: always
46 on_start: never # options: [always|never|change] default: always
47 on_cancel: never # options: [always|never|change] default: always
48 on_error: never # options: [always|never|change] default: always
49 email: false