forked from lwasser/geopandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (41 loc) · 1.68 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
language: python
sudo: false
matrix:
include:
# Only one test for these Python versions
- env: ENV_FILE="ci/travis/35-minimal.yaml"
# Python 2.7 and 3.6 test all supported Pandas versions
- env: ENV_FILE="ci/travis/27-pd023.yaml"
# - env: ENV_FILE="ci/travis/27-latest-defaults.yaml"
- env: ENV_FILE="ci/travis/27-latest-conda-forge.yaml"
- env: ENV_FILE="ci/travis/36-pd023.yaml"
- env: ENV_FILE="ci/travis/36-pd024.yaml"
- env: ENV_FILE="ci/travis/37-latest-defaults.yaml" STYLE=true
- env: ENV_FILE="ci/travis/37-latest-conda-forge.yaml"
- env: ENV_FILE="ci/travis/37-dev.yaml" DEV=true
install:
# Install conda
- wget https://repo.continuum.io/miniconda/Miniconda3-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
- conda info
# free channel needed for older envs (< py37), see
# https://github.com/conda/conda/issues/8849
- conda config --set restore_free_channel true
# Install dependencies
- conda env create --file="${ENV_FILE}"
- source activate test
- if [ "$DEV" ]; then pip install git+https://github.com/pydata/pandas.git; fi
- if [ "$DEV" ]; then pip install git+https://github.com/matplotlib/matplotlib.git; fi
- if [ "$STYLE" ]; then pip install black flake8; fi
- pip install -e .
- conda list
- python -c "import geopandas; geopandas.show_versions();"
script:
- py.test geopandas --cov geopandas -v --cov-report term-missing
- if [ "$STYLE" ]; then black --check geopandas; fi
- if [ "$STYLE" ]; then flake8 geopandas; fi
after_success:
- codecov