forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (59 loc) · 2.16 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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 miniconda.
- 2.7
install:
- sudo apt-get update -qq
# Workarounds exising conda recipies
# ----------------------------------
# Ensure that the systems freetype library is used and not the conda installed version due to testing issues.
- export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
# Install miniconda
# -----------------
- if [[ "$TRAVIS_PYTHON_VERSION" == 2* ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
# Create the basic testing environment
# ------------------------------------
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
# Customise the testing environment
# ---------------------------------
- conda config --add channels rsignell
- conda install numpy=1.7.1 matplotlib=1.3.1 scipy=0.12.0
- conda install cython
# The conda "pillow" build is broken, so we use "imaging" instead.
# - https://github.com/ContinuumIO/anaconda-issues/issues/30
- conda install imaging
- conda install mock
- conda install nose
- conda install owslib
- conda install pep8=1.4.5
- conda install proj4
- conda install pyshp
- conda install shapely
- conda install six
- conda install requests
- conda install pip
- pip install pyepsg
- MPL_CONFIG_DIR=~/.config/matplotlib
- mkdir -p $MPL_CONFIG_DIR
- echo "backend" ":" "agg" > $MPL_CONFIG_DIR/matplotlibrc
# Install cartopy
# ---------------
- python setup.py --quiet install
script:
- mkdir ../test_folder
- cd ../test_folder
- nosetests cartopy --with-doctest -sv
after_failure:
- source activate test-environment
- python -c "import cartopy.tests.mpl; print cartopy.tests.mpl.failed_images_html()"