Ivan Suzdal | 184c4e3 | 2018-06-06 13:55:30 +0400 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 6 | - pip install PyYAML |
| 7 | - pip install virtualenv |
| 8 | - | |
Martin Polreich | 587ff36 | 2018-11-07 14:44:17 +0100 | [diff] [blame] | 9 | 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 Suzdal | 184c4e3 | 2018-06-06 13:55:30 +0400 | [diff] [blame] | 12 | - bundle install |
| 13 | |
| 14 | env: |
Martin Polreich | 3a91ddd | 2018-11-20 15:10:01 +0100 | [diff] [blame] | 15 | - 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 Suzdal | 184c4e3 | 2018-06-06 13:55:30 +0400 | [diff] [blame] | 17 | |
| 18 | before_script: |
| 19 | - set -o pipefail |
| 20 | - make test | tail |
| 21 | |
| 22 | script: |
| 23 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 24 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |