forked from tkrajina/gpxpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (45 loc) · 1.14 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
50
51
52
53
54
55
56
57
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
- 3.6
env:
- XMLPARSER=LXML
- XMLPARSER=STDLIB
install:
# Check whether to install lxml
# Pin versions 2.6 and 3.2 to lxml 3.6 (end of support)
- if [ "$XMLPARSER" == "LXML" ]; then
case "$TRAVIS_PYTHON_VERSION" in
"2.7"|"3.3"|"3.4"|"3.5"|"3.6")
pip install lxml
;;
"2.6"|"3.2")
pip install lxml==3.6
;;
esac
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 pycodestyle
- pyflakes . | tee >(wc -l)
- pycodestyle --statistics --count .
matrix:
fast_finish: true