blob: f6fa3c0162326b8d37c8441689488012349a8ce7 [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'
Martin Polreichabdf40e2018-10-24 12:01:19 +020018 gem 'inspec', '<3.0.0'
19 #Version was frozen, because of issues in the version of inspec >3.0.0 -- see https://mirantis.jira.com/browse/PROD-24324 for more info
Ivan Suzdal50a360f2018-06-04 16:07:41 +040020 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
21 - bundle install
22
23env:
24 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=server
25 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=server
26 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=server
27
28before_script:
29 - set -o pipefail
30 - make test | tail
31
32script:
33 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
34 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration