forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 1.39 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
language: python
python:
# this is not actually used. Because it would take an overly long time
# to build scipy we cannot use the virtual env of travis. Instead, we use the
# standard apt-get installation of python2.7. See
# https://groups.google.com/forum/#!msg/travis-ci/uJgu35XKdmI/UA0Kj1EhavAJ
# for the discussion topic
#
- 2.7
install:
- ./.travis_no_output sudo apt-get install python-scipy python-pip cython
- ./.travis_no_output sudo /usr/bin/pip install https://github.com/downloads/matplotlib/matplotlib/matplotlib-1.2.0rc3.tar.gz
# http://www.webupd8.org/2010/10/fix-nopubkey-error-for-extras-ubuntu.html
- ./.travis_no_output sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3E5C1192
- yes | ./.travis_no_output sudo add-apt-repository ppa:olivier-berten/geo
- ./.travis_no_output sudo apt-get update
- ./.travis_no_output sudo apt-get install libgeos-dev libproj-dev
- ./.travis_no_output sudo /usr/bin/pip install --use-mirrors shapely nose pyshp pep8
# its always version 2 currently
- if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; then ./.travis_no_output sudo /usr/bin/pip install --use-mirrors PIL; fi
# install cartopy in the .local directory (in lieu of using virtual env...)
- ./.travis_no_output /usr/bin/python setup.py install --user
script:
- mkdir ../test_folder
- cd ../test_folder
- /usr/local/bin/nosetests cartopy --with-doctest -sv