Skip to content

Commit

Permalink
Merge dcd480c into 8490fb8
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 7, 2018
2 parents 8490fb8 + dcd480c commit eb4b7db
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
33 changes: 21 additions & 12 deletions .travis.yml
Expand Up @@ -44,14 +44,16 @@ install:
echo "Associated pull request found - PR $TRAVIS_PULL_REQUEST";
fi
fi
- REF_DATA_BRANCH=${TRAVIS_PULL_REQUEST//false/reference_data}
- git clone https://github.com/ioam/holoviews-data.git -b reference_data ./doc/reference_data
- cd ./doc/reference_data
- echo "Attempting to checkout $REF_DATA_BRANCH branch"
- if [ $(git branch -a --list *origin/$REF_DATA_BRANCH | wc -l) -eq 1 ] ; then
git checkout origin/$REF_DATA_BRANCH;
else
echo "Using the master branch reference data";
- if [ "$TRAVIS_BRANCH" == 'master' ]; then
REF_DATA_BRANCH=${TRAVIS_PULL_REQUEST//false/reference_data};
git clone https://github.com/ioam/holoviews-data.git -b reference_data ./doc/reference_data;
cd ./doc/reference_data;
echo "Attempting to checkout $REF_DATA_BRANCH branch";
if [ $(git branch -a --list *origin/$REF_DATA_BRANCH | wc -l) -eq 1 ] ; then
git checkout origin/$REF_DATA_BRANCH;
else
echo "Using the master branch reference data";
fi
fi
- cd ../..

Expand All @@ -63,10 +65,17 @@ script:
- echo 'import holoviews as hv;hv.config(style_17=True);hv.config.warn_options_call=True' > holoviews.rc
- flake8 --ignore=E,W,F999,F405 holoviews
- nosetests --with-doctest --with-coverage --cover-package=holoviews
- cd doc/nbpublisher; chmod +x test_notebooks.py; QT_QPA_PLATFORM='offscreen' BOKEH_DEV=True ./test_notebooks.py
- chmod +x concat_html.py; ./concat_html.py ../test_data ../test_html
- cd ../../; mv doc/Tutorials/.coverage ./.coverage.notebooks
- coverage combine --append
- if [ "$TRAVIS_BRANCH" == 'master' ]; then
cd doc/nbpublisher;
chmod +x test_notebooks.py;
QT_QPA_PLATFORM='offscreen' BOKEH_DEV=True ./test_notebooks.py;
chmod +x concat_html.py;
./concat_html.py ../test_data ../test_html;
cd ../../; mv doc/Tutorials/.coverage ./.coverage.notebooks;
coverage combine --append;
else
pytest examples --nbsmoke-run -k ".ipynb" --cov=holoviews --cov-append;
fi

after_script:
- shopt -s expand_aliases
Expand Down
4 changes: 3 additions & 1 deletion environment.yml
Expand Up @@ -24,4 +24,6 @@ dependencies:
# Testing requirements
- flake8
- nose
- pytest
- pytest-cov
- nbsmoke

0 comments on commit eb4b7db

Please sign in to comment.