blob: 1d0b0dbadc12170604f2b16450cc6108c9934874 [file] [log] [blame]
Martin Polreichdc366432018-06-21 15:28:53 +02001language: python
2python:
3- "2.7.13"
Mykyta Karpindb737652018-02-05 11:11:31 +02004sudo: required
5services:
6 - docker
7
8install:
9 - pip install PyYAML
10 - pip install virtualenv
11 - |
Martin Polreich00726972018-11-07 14:42:43 +010012 if [ ! -e Gemfile ]; then
13 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'
14 fi
Mykyta Karpindb737652018-02-05 11:11:31 +020015 - bundle install
16
17env:
Mykyta Karpindb737652018-02-05 11:11:31 +020018 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.0 GNOCCHI_STORAGE=file OS_VERSION=pike SUITE=server_cluster
19 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.0 GNOCCHI_STORAGE=redis OS_VERSION=pike SUITE=server_cluster
20 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.0 GNOCCHI_STORAGE=file OS_VERSION=pike SUITE=server_single
21 - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.0 GNOCCHI_STORAGE=redis OS_VERSION=pike SUITE=server_single
Mykyta Karpin5ce0b612018-06-04 15:23:28 +030022 #- PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.2 GNOCCHI_STORAGE=file OS_VERSION=queens SUITE=server_cluster
23 #- PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.2 GNOCCHI_STORAGE=redis OS_VERSION=queens SUITE=server_cluster
24 #- PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.2 GNOCCHI_STORAGE=file OS_VERSION=queens SUITE=server_single
25 #- PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 GNOCCHI_VERSION=4.2 GNOCCHI_STORAGE=redis OS_VERSION=queens SUITE=server_single
Mykyta Karpindb737652018-02-05 11:11:31 +020026
27before_script:
28 - set -o pipefail
29 - make test | tail
30
31script:
32 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
33 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
34
35notifications:
36 webhooks:
37 urls:
38 - https://webhooks.gitter.im/e/6123573504759330786b
39 on_success: change # options: [always|never|change] default: always
40 on_failure: never # options: [always|never|change] default: always
41 on_start: never # options: [always|never|change] default: always
42 on_cancel: never # options: [always|never|change] default: always
43 on_error: never # options: [always|never|change] default: always
44 email: false