-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
36 lines (32 loc) · 1.49 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
language: c
sudo: false
branches:
only:
- master
os:
- linux
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ./miniconda
- export PATH=`pwd`/miniconda/bin:$PATH
- conda update --yes conda
- conda install --yes psutil yaml pyyaml
#- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then conda create --name gds --file content/infrastructure/gds_requirements_linux-64.txt; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then conda create --name gds --file content/infrastructure/gds_requirements_osx-64.txt; fi
- "conda-env create -f content/infrastructure/install_gds_stack.yml"
- source activate gds
- pip install contextily
script:
- python -c "import fiona"
- python -c "import pysal;import geopandas;s=geopandas.read_file(pysal.examples.get_path('columbus.shp'));s.crs['init']='epsg:26918';s.to_crs(epsg=4326)"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then jupyter nbconvert --to markdown --execute --ExecutePreprocessor.timeout=480 content/infrastructure/check_gds_stack.ipynb; fi
#- cd content/labs
#- jupyter nbconvert --execute --ExecutePreprocessor.timeout=120 *.ipynb
notifications:
email:
recipients:
on_failure: always