Skip to content

Commit

Permalink
Improved branch switching conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jan 29, 2016
1 parent 301b5e8 commit 5f95646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -36,9 +36,10 @@ install:
- pip install path.py
- pip install coveralls awscli
- git clone https://github.com/ioam/holoviews-data.git -b reference_data ./doc/reference_data
- git show-branch $TRAVIS_BUILD_NUMBER &> /dev/null
- if [ $? -ne 0 ]; then
- if git show-branch $TRAVIS_BUILD_NUMBER ; then
git checkout $TRAVIS_BUILD_NUMBER;
else
echo "Using the master branch reference data";
fi

before-script:
Expand Down

0 comments on commit 5f95646

Please sign in to comment.