Skip to content

Instantly share code, notes, and snippets.

@ejokeeffe
Created January 5, 2017 13:13
Show Gist options
  • Save ejokeeffe/4f6fd57be5d046c8e5f7f75b1f84ed29 to your computer and use it in GitHub Desktop.
Save ejokeeffe/4f6fd57be5d046c8e5f7f75b1f84ed29 to your computer and use it in GitHub Desktop.
Including matplotlib basemap in travis integration (rename file to .travis.yml)
sudo: false
language: python
virtualenv:
system_site_packages: true
services:
env:
matrix:
- DISTRIB="conda" PYTHON_VERSION="3.4" COVERAGE="true"
- DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="false"
addons:
apt:
packages:
- git
- python-pip
install:
- source tests/travis_install.sh
- pip install -r requirements.txt
before_script:
- mkdir basemap
- cd basemap
- wget --no-check-certificate https://github.com/matplotlib/basemap/archive/v1.0.7rel.tar.gz
- tar -xvf v1.0.7rel.tar.gz
- mkdir geos_loc
- cd basemap-1.0.7rel
- cd geos-3.3.3
- export GEOS_DIR=~/basemap/geos_loc/
- ./configure --prefix=$GEOS_DIR
- make; make install
- cd ../
- python setup.py install
- cd ../../
script:
- python setup.py test
after_success:
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; fi
cache:
- apt
@ejokeeffe
Copy link
Author

It's effectively following the instructions here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment