blob: bc58509f24d740dae22ff7ee20c9f7b1a62666ca [file] [log] [blame]
Martin Polreich05a36582018-06-21 15:27:05 +02001language: python
2python:
3- "2.7.13"
Ivan Suzdal50a360f2018-06-04 16:07:41 +04004sudo: 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'
19 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
20 - bundle install
21
22env:
23 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=server
26
27before_script:
28 - set -o pipefail
29 - make test | tail
30
31script:
32 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
33 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration