blob: fccb3082a7366b2b5058fd43c8173e16f87dd11d [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:
15 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=openscap
16 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=openscap
17
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