blob: b9dc8b253e174e1f2b210a24755b79e2f539c5f2 [file] [log] [blame]
Martin Polreich8044a652017-08-29 14:28:59 +02001sudo: required
2services:
3 - docker
4
5install:
6 - pip install PyYAML
7 - pip install virtualenv
8 - |
Martin Polreich42dc3222018-11-07 14:42:59 +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
Martin Polreich8044a652017-08-29 14:28:59 +020012 - bundle install
13
14env:
Martin Polreich56feb352018-04-18 10:47:45 +020015 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=single
16 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=single
17 - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=single
18# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=single
19# - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=single
20
Martin Polreich8044a652017-08-29 14:28:59 +020021before_script:
22 - set -o pipefail
23 - make test | tail
24
25script:
Martin Polreichedfc1212018-01-05 13:08:53 +010026 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
27 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreich8044a652017-08-29 14:28:59 +020028
29notifications:
30 webhooks:
31 urls:
32 - https://webhooks.gitter.im/e/6123573504759330786b
33 on_success: change # options: [always|never|change] default: always
34 on_failure: never # options: [always|never|change] default: always
35 on_start: never # options: [always|never|change] default: always
36 on_cancel: never # options: [always|never|change] default: always
37 on_error: never # options: [always|never|change] default: always
38 email: false