forked from pystorm/streamparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (28 loc) · 974 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.6-dev"
# - "3.7-dev" -- to be added when beta is out - see https://www.python.org/dev/peps/pep-0537/#id6
- "pypy-5.4.1"
install:
- travis_retry pip install -r requirements.txt
- travis_retry pip install -r test-requirements.txt
- travis_retry pip install coveralls coverage nose-cov
- echo TRAVIS_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}
- if [ ${TRAVIS_PYTHON_VERSION:0:1} != "3" ]; then travis_retry pip install contextlib2; fi
- python setup.py --version
# Run test
script:
- if [ $TRAVIS_PYTHON_VERSION == "3.4" ]; then nosetests -v --with-cov --cov streamparse --cov-config .coveragerc --logging-level=DEBUG; fi
- if [ $TRAVIS_PYTHON_VERSION != "3.4" ]; then nosetests -v --logging-level=DEBUG; fi
# Calculate coverage on success
after_success:
- if [ $TRAVIS_PYTHON_VERSION == "3.4" ]; then coveralls; fi