forked from holoviz/holoviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (50 loc) · 1.69 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
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
- "3.4"
notifications:
email:
on_failure: change # [always|never|change] default: always
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-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"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose numpy=1.9.1 matplotlib bokeh pandas scipy jupyter ipython param freetype=2.5.2
- source activate test-environment
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.4" ]]; then
conda install python=3.4.3;
fi
- python setup.py install
- pip install git+git://github.com/ioam/param.git
- pip install path.py
- pip install coveralls
before-script:
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
script:
- nosetests --with-doctest --with-coverage --cover-package=holoviews -a '!optional'
- cd doc/nbpublisher; chmod +x test_notebooks.py; ./test_notebooks.py
- chmod +x concat_html.py; ./concat_html.py ../test_data ../test_html
- cd ../../; mv doc/Tutorials/.coverage ./.coverage.notebooks
- coverage combine
addons:
artifacts:
debug: true
paths:
- ./doc/test_html
target_paths: build_$TRAVIS_BUILD_NUMBER
working_dir: WORKING_DIR
s3_region: eu-west-1
after_success: coveralls