forked from tkrajina/gpxpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1.95 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
# Use container-based infrastructure
sudo: false
# Those without lxml wheels first because building lxml is slow
python:
- 3.5
- 3.2
- 2.7
- 2.6
- 3.4
- 3.3
install:
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then wget -q -P /tmp "https://github.com/obspy/wheelhouse/raw/master/lxml-3.4.0-cp26-none-linux_x86_64.whl"; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then wget -q -P /tmp "https://github.com/obspy/wheelhouse/raw/master/lxml-3.4.0-cp27-none-linux_x86_64.whl"; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.3" ]; then wget -q -P /tmp "https://github.com/obspy/wheelhouse/raw/master/lxml-3.4.0-cp33-cp33m-linux_x86_64.whl"; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.4" ]; then wget -q -P /tmp "https://github.com/obspy/wheelhouse/raw/master/lxml-3.4.0-cp34-cp34m-linux_x86_64.whl"; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install --use-wheel --no-index --find-links=/tmp lxml; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip install --use-wheel --no-index --find-links=/tmp lxml; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.3" ]; then pip install --use-wheel --no-index --find-links=/tmp lxml; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.4" ]; then pip install --use-wheel --no-index --find-links=/tmp lxml; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then pip install lxml; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.5" ]; then pip install lxml; fi
# Coveralls 4.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
script:
- python -m unittest test
- coverage run --source=gpxpy ./test.py
after_success:
- pip install coveralls
- coveralls
after_script:
- coverage report
- pip install pyflakes pep8
- pyflakes . | tee >(wc -l)
- pep8 --statistics --count .
matrix:
fast_finish: true