forked from darribas/gds19
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 1.2 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
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
- "conda-env create -f content/infrastructure/install_gds_stack.yml"
- source activate gds
script:
- python -c "import fiona"
- python -c "import pysal;import geopandas;s=geopandas.read_file(pysal.lib.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:
- daniel.arribas.bel@gmail.com
on_failure: always