Skip to content

Commit

Permalink
Added conditional reference data checkout based on PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jan 30, 2016
1 parent ef3ead7 commit 0f9ed4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ install:
- pip install path.py
- pip install coveralls awscli
- git clone https://github.com/ioam/holoviews-data.git -b reference_data ./doc/reference_data
- cd ./doc/reference_data
- REF_BRANCH=${TRAVIS_PULL_REQUEST//false/master}
- echo "Attempting to checkout $REF_BRANCH branch"
- if [ $(git branch -a --list *origin/$REF_BRANCH | wc -l) -eq 1 ] ; then
git checkout $REF_BRANCH;
else
echo "Using the master branch reference data";
fi
- cd ../..

before-script:
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
Expand Down

0 comments on commit 0f9ed4b

Please sign in to comment.