blob: e74673a9fed3eb1bcb80adcc01ddf796d6fe1a91 [file] [log] [blame]
Ivan Suzdal184c4e32018-06-06 13:55:30 +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'
Martin Polreich4943c8a2018-10-24 12:03:21 +020015 gem 'inspec', '<3.0.0'
16 #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 Suzdal184c4e32018-06-06 13:55:30 +040017 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
18 - bundle install
19
20env:
21 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=openscap
22 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=openscap
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