forked from holoviz/datashader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (48 loc) · 2.08 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
# 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
os:
- linux
- osx
# get a more recent version of osx than the default image
osx_image: xcode8.3
sudo: false
env:
- PYTHON_VERSION="2.7"
- PYTHON_VERSION="3.5"
- PYTHON_VERSION="3.6"
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
# Install dependencies
- conda create -n test-environment python=$PYTHON_VERSION
- source activate test-environment
- conda install dask numba numpy pandas pillow toolz xarray datashape colorcet rasterio scikit-image param
- conda install -c gbrener -c conda-forge xarray # remove this line when xarray >= 0.9.7
# Optional dependencies, for testing only
- conda install -c conda-forge pytest pytest-benchmark
- conda install matplotlib
# Dependencies for lint checking only
- conda install jupyter flake8
- python setup.py develop --no-deps
- conda env export
script:
# TODO: why different tests for python 2 vs 3?
- if [[ $PYTHON_VERSION == '2.7' ]]; then py.test datashader/tests --doctest-modules --doctest-ignore-import-errors --verbose; else py.test datashader/tests --verbose; fi
- flake8 --ignore E,W datashader examples
# lint checking of example notebooks (ugly)
- for NB in examples/*.ipynb; do sed -e 's/"[ ]*%/"#%/' "$NB" > "${NB}~"; done && jupyter nbconvert examples/*.ipynb~ --to script --output-dir examples/lint && flake8 --ignore=E,W examples/lint/*.py
# benchmarks
- py.test datashader/benchmarks
notifications:
email: false