Created
January 5, 2017 13:13
-
-
Save ejokeeffe/4f6fd57be5d046c8e5f7f75b1f84ed29 to your computer and use it in GitHub Desktop.
Including matplotlib basemap in travis integration (rename file to .travis.yml)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's effectively following the instructions here