Martin Polreich | ef40020 | 2018-06-21 15:29:21 +0200 | [diff] [blame] | 1 | language: python |
| 2 | python: |
| 3 | - "2.7.13" |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 4 | sudo: required |
Martin Polreich | a3eacc4 | 2018-11-07 10:58:57 +0100 | [diff] [blame^] | 5 | services: |
| 6 | - docker |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 7 | |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 8 | install: |
Martin Polreich | a3eacc4 | 2018-11-07 10:58:57 +0100 | [diff] [blame^] | 9 | - pip install PyYAML |
| 10 | - pip install virtualenv |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 11 | - | |
Martin Polreich | a3eacc4 | 2018-11-07 10:58:57 +0100 | [diff] [blame^] | 12 | if [ ! -e Gemfile ]; then |
| 13 | echo $PWD |
| 14 | 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' |
| 15 | fi |
| 16 | - bundle install |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 17 | |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 18 | env: |
Martin Polreich | a3eacc4 | 2018-11-07 10:58:57 +0100 | [diff] [blame^] | 19 | - UBUNTU_DISTRO=xenial SALT_VERSION='2018.3.0' SUITE=iptables |
| 20 | - UBUNTU_DISTRO=xenial SALT_VERSION='2017.7.0' SUITE=iptables |
| 21 | # - UBUNTU_DISTRO=bionic SALT_VERSION='2018.3' SUITE=iptables |
| 22 | # - UBUNTU_DISTRO=bionic SALT_VERSION='2017.7' SUITE=iptables |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 23 | |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 24 | before_script: |
Martin819 | f7613e4 | 2017-03-28 09:40:12 +0200 | [diff] [blame] | 25 | - set -o pipefail |
| 26 | - make test | tail |
Martin819 | 1d6f0a8 | 2017-03-17 17:38:11 +0100 | [diff] [blame] | 27 | |
| 28 | script: |
Dzmitry Stremkouski | 1ca901c | 2018-11-05 13:20:52 +0100 | [diff] [blame] | 29 | - test ! -e .kitchen.openstack.yml || bundle exec kitchen converge ${SUITE} || true |
| 30 | - test ! -e .kitchen.openstack.yml || bundle exec kitchen verify ${SUITE} -t tests/integration |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 31 | |
| 32 | notifications: |
Martin819 | e07d0a9 | 2017-03-28 11:37:58 +0200 | [diff] [blame] | 33 | on: |
| 34 | branch: master |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 35 | webhooks: |
| 36 | urls: |
| 37 | - https://webhooks.gitter.im/e/6123573504759330786b |
| 38 | on_success: change # options: [always|never|change] default: always |
Martin819 | 4cbbe3b | 2017-03-28 12:50:56 +0200 | [diff] [blame] | 39 | on_failure: never # options: [always|never|change] default: always |
Martin819 | fe6e787 | 2017-03-28 10:17:00 +0200 | [diff] [blame] | 40 | on_start: never # options: [always|never|change] default: always |
| 41 | on_cancel: never # options: [always|never|change] default: always |
Martin819 | 4cbbe3b | 2017-03-28 12:50:56 +0200 | [diff] [blame] | 42 | on_error: never # options: [always|never|change] default: always |
| 43 | email: false |