blob: 1ef47ae18ab8d4cd0ec127110648c2c99fb5860c [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 - |
Martin Polreich587ff362018-11-07 14:44:17 +01009 if [ ! -e Gemfile ]; then
10 curl -s -o ./Gemfile 'https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas/salt-formulas-scripts.git;a=blob_plain;f=Gemfile;hb=refs/heads/master'
11 fi
Ivan Suzdal184c4e32018-06-06 13:55:30 +040012 - bundle install
13
14env:
Martin Polreich3a91ddd2018-11-20 15:10:01 +010015 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=openscap
16 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=openscap
Ivan Suzdal184c4e32018-06-06 13:55:30 +040017
18before_script:
19 - set -o pipefail
20 - make test | tail
21
22script:
23 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
24 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration