-
Notifications
You must be signed in to change notification settings - Fork 104
/
.travis.yml
60 lines (50 loc) · 2.03 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
58
59
60
language: python
python:
- "pypy"
- "pypy3"
- "2.7"
- "2.7_with_system_site_packages"
- "3.6"
- "3.5"
# Enable 3.7 without globally enabling dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xenial
before_install:
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/
install:
- pip install -U pip
- pip install -U pyopenssl
- pip install coverage
- travis_retry pip install coveralls
- travis_retry pip install -r requirements.txt
- travis_retry sudo apt-get --quiet=2 install perceptualdiff
# we only have gdal in system packages
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then pushd depends && ./install_gdal.sh && popd; fi
script:
- coverage erase
- coverage run --source heatmap --append ./test/test.py
- coverage run --source heatmap --append ./test/test_coordinates.py
- coverage run --source heatmap --append ./test/test_extent.py
- coverage run --source heatmap --append ./test/test_projections.py
- coverage run --source heatmap --append ./test/test_projection_scale.py
- coverage run --source heatmap --append ./test/test_random.py
- coverage run --source heatmap --append ./test/test_gradients.py
- coverage run --source heatmap --append ./test/test_configuration.py
# test_system_*.py call heatmap.py directly with coverage
- python test/test_system.py
- python test/test_system_gpx.py
- python test/test_system_csv.py
# we only have gdal in system packages
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then coverage run --source heatmap --append ./test/test_shp_file.py; fi
# we only have gdal in system packages
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then python test/test_old_cmdline_support.py; fi
after_success:
- coverage report
- coveralls
- travis_retry pip install pep8 pyflakes
- pep8 *.py
- pyflakes *.py
- pep8 test/*.py
- pyflakes test/*.py