blob: 480f9f9e07aa55b59efb6135d929005a1e068ce2 [file] [log] [blame]
Ivan Suzdal50a360f2018-06-04 16:07:41 +04001sudo: required
2services:
3 - docker
4
5install:
6 - pip install PyYAML
7 - pip install virtualenv
8 - |
9 test -e Gemfile || cat <<EOF > Gemfile
10 source 'https://rubygems.org'
11 gem 'rake'
12 gem 'test-kitchen'
13 gem 'kitchen-docker'
14 gem 'kitchen-inspec'
15 gem 'inspec'
16 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
17 - bundle install
18
19env:
20 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
21 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=server
23
24before_script:
25 - set -o pipefail
26 - make test | tail
27
28script:
29 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
30 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration