Martin Polreich | 9536559 | 2018-06-21 15:28:10 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
azvyagintsev | b80d622 | 2018-02-19 15:53:40 +0200 | [diff] [blame] | 4 | sudo: required |
| 5 | services: |
| 6 | - docker |
| 7 | |
| 8 | addons: |
| 9 | apt: |
| 10 | packages: |
| 11 | - apt-transport-https |
| 12 | |
| 13 | install: |
| 14 | - git fetch --unshallow --tags |
| 15 | - pip install PyYAML |
| 16 | - pip install virtualenv |
| 17 | - pip install reno |
| 18 | - | |
Martin Polreich | b616e55 | 2018-11-07 14:42:05 +0100 | [diff] [blame] | 19 | if [ ! -e Gemfile ]; then |
| 20 | 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' |
| 21 | fi |
azvyagintsev | b80d622 | 2018-02-19 15:53:40 +0200 | [diff] [blame] | 22 | - bundle install |
| 23 | |
| 24 | env: |
Martin Polreich | 6e49d5e | 2018-11-20 15:07:26 +0100 | [diff] [blame] | 25 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=debmirror-client |
| 26 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=debmirror-client |
| 27 | - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=debmirror-client |
azvyagintsev | b80d622 | 2018-02-19 15:53:40 +0200 | [diff] [blame] | 28 | |
| 29 | before_script: |
| 30 | - set -o pipefail |
| 31 | - make test | tail |
| 32 | |
| 33 | script: |
| 34 | - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true |
| 35 | - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
| 36 | |
| 37 | notifications: |
| 38 | webhooks: |
| 39 | urls: |
| 40 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 41 | on_success: change # options: [always|never|change] default: always |
| 42 | on_failure: never # options: [always|never|change] default: always |
| 43 | on_start: never # options: [always|never|change] default: always |
| 44 | on_cancel: never # options: [always|never|change] default: always |
| 45 | on_error: never # options: [always|never|change] default: always |
| 46 | email: false |