-
-
Notifications
You must be signed in to change notification settings - Fork 122
/
.travis.yml
49 lines (42 loc) · 1.5 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
# We deliberately don't use travis's language=python option because
# we install miniconda and use conda to get python. Additionally,
# Travis's auto-install of python doesn't work on osx images (see
# https://github.com/travis-ci/travis-ci/issues/4729).
language: generic
matrix:
include:
- os: linux
- os: osx
language: generic # python doesn't seem to work on osx images
if: branch = master AND type != pull_request
env:
- PYTHON_VERSION="3.6"
before_install:
# brew-installed geos interferes with cartopy?
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew uninstall --ignore-dependencies geos gdal postgis;
fi
install:
# Install conda
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
# it might be faster to start from anaconda instead of miniconda
- travis_wait 20 conda env create --file environment.yml python=$PYTHON_VERSION
- source activate anacondaviz
# dependencies for tests etc
- pip install flake8
- conda env export
- conda list
script:
- python download_sample_data.py
# python ./etc/test_notebooks.py lint
- python ./etc/test_notebooks.py
notifications:
email: false