forked from geopandas/geopandas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (46 loc) · 1.98 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
sudo: false
matrix:
include:
# Only one test for these Python versions
- python: 3.5
env: PANDAS=0.20.2 MATPLOTLIB=1.5.3
# Python 2.7 and 3.6 test all supported Pandas versions
- python: 2.7
env: PANDAS=0.19.2 MATPLOTLIB=1.5.3 SHAPELY=1.5
- python: 2.7
env: PANDAS=0.20.2 MATPLOTLIB=2.0.2 CHANNEL=conda-forge
- python: 2.7
env: PANDAS=0.23.2 MATPLOTLIB=2.1.2
- python: 2.7
env: PANDAS=master MATPLOTLIB=2.2.2
- python: 3.6
env: PANDAS=0.19.2 MATPLOTLIB=1.5.3 SHAPELY=1.5 CHANNEL=conda-forge # conda-forge is needed here for this combination
- python: 3.6
env: PANDAS=0.20.2 MATPLOTLIB=2.0.2
- python: 3.6
env: PANDAS=0.23.2 MATPLOTLIB=2.2.2 CHANNEL=conda-forge
- python: 3.6
env: PANDAS=master MATPLOTLIB=master
install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- if [ -n "$CHANNEL" ]; then conda config --add channels $CHANNEL; fi
# Install dependencies
- conda create -n test-geopandas python=$TRAVIS_PYTHON_VERSION pytest matplotlib six psycopg2 sqlalchemy pytest-cov mock
- source activate test-geopandas
- if [[ $MATPLOTLIB == 'master' ]]; then pip install git+https://github.com/matplotlib/matplotlib.git; fi
- if [ -n "$SHAPELY" ]; then conda install shapely=$SHAPELY; else conda install shapely; fi
- conda install pysal pyproj fiona descartes rtree
- if [[ $PANDAS != 'master' ]]; then conda install pandas==$PANDAS; fi
- if [[ $PANDAS == 'master' ]]; then conda install pandas cython; pip install git+https://github.com/pydata/pandas.git; fi
# codecov is not available from defaults
- conda install -c conda-forge codecov
script:
- py.test geopandas --cov geopandas -v --cov-report term-missing
after_success:
- codecov