Skip to content

Commit

Permalink
Merge pull request #225 from boyska/travis-matrix
Browse files Browse the repository at this point in the history
Travis matrix
  • Loading branch information
ael-code committed Mar 14, 2016
2 parents 86057a3 + 4f84ecb commit 70bb7cc
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
language: python

python:
- "2.7"

services:
- elasticsearch

env:
- VERSION_GEVENT="1.0.1"
- VERSION_GEVENT="1.0.2"
- VERSION_GEVENT="1.1.0"
matrix:
include:
- python: "2.7"
env: TEST_SUITE=test VERSION_GEVENT=1.0.1
- python: "2.7"
env: TEST_SUITE=test VERSION_GEVENT=1.0.2
- python: "2.7"
env: TEST_SUITE=test VERSION_GEVENT=1.1.0
- python: "2.7"
env: TEST_SUITE=build_sphinx
- python: "2.7"
env: TEST_SUITE=flake

before_install:
- pip install --force gevent==$VERSION_GEVENT

- '[[ -n $VERSION_GEVENT ]] && pip install --force gevent==$VERSION_GEVENT || true'

install:
- pip install flake8 sphinx
- python setup.py install

before_script:
- sleep 10 # wait for elasticsearch
- 'if [[ $TEST_SUITE == flake ]]; then pip install flake8; return $? ; fi'
- 'if [[ $TEST_SUITE != flake ]]; then python setup.py install; return $? ; fi'
- 'if [[ $TEST_SUITE == build_sphinx ]]; then pip install sphinx; return $? ; fi'

script:
- flake8
- python setup.py test
- python setup.py build_sphinx
- 'if [[ $TEST_SUITE == flake ]]; then flake8; return $?; fi'
- 'if [[ $TEST_SUITE == test ]]; then sleep 10 && python setup.py test ; return $?; fi'
- 'if [[ $TEST_SUITE == build_sphinx ]]; then python setup.py build_sphinx; return $?; fi'

0 comments on commit 70bb7cc

Please sign in to comment.