forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (58 loc) · 2.31 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
71
72
language: python
env:
matrix:
- PYTHON_VERSION=2.7
PACKAGES="numpy=1.7.1 matplotlib=1.3.1 nose scipy=0.12.0 mock"
- PYTHON_VERSION=3.4
PACKAGES="numpy=1.8.2 matplotlib=1.3.1 nose scipy=0.14.0"
# Remove nose from latest packages when Matplotlib 2.1 is released.
- NAME="Latest everything."
PYTHON_VERSION=3.5
PACKAGES="numpy matplotlib nose scipy"
- NAME="Latest everything (py2k)."
PYTHON_VERSION=2
PACKAGES="numpy matplotlib nose scipy mock"
sudo: false
git:
# Because we check the history of every file, we need to have
# a deep clone of the repo.
depth: 10000
install:
# Install miniconda
# -----------------
- if [[ "$PYTHON_VERSION" == 2* ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.7.0-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 --set show_channel_urls yes
- conda update conda
- conda create -n test-environment python=$PYTHON_VERSION
- source activate test-environment
# Customise the testing environment
# ---------------------------------
- conda config --add channels conda-forge
- PACKAGES="$PACKAGES cython pillow pytest pep8 proj4 pyshp shapely six requests pyepsg owslib"
- conda install --quiet $PACKAGES
# Conda debug
# -----------
- conda list
- MPL_CONFIG_DIR=~/.config/matplotlib
- mkdir -p $MPL_CONFIG_DIR
- echo "backend" ":" "agg" > $MPL_CONFIG_DIR/matplotlibrc
# Install cartopy
# ---------------
- pip install --no-deps .
script:
- mkdir ../test_folder
- cd ../test_folder
# Check that the downloader tool at least knows where to get the data from (but don't actually download it)
- python $TRAVIS_BUILD_DIR/tools/feature_download.py gshhs physical --dry-run
- CARTOPY_GIT_DIR=$TRAVIS_BUILD_DIR pytest --doctest-modules --pyargs cartopy
after_failure:
- source activate test-environment
- python -c "from __future__ import print_function; import cartopy.tests.mpl; print(cartopy.tests.mpl.failed_images_html())"