Skip to content

Commit

Permalink
Don't generate docs if we can't determine a Git branch
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewatters committed Feb 7, 2013
1 parent 7416a0f commit 1add8f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ rake server:stop
# Build & Publish Docs
if [ -n $DOCS_DESTINATION ]; then
VERSION=`echo $GIT_BRANCH|sed -e 's/origin\///'`
echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'"
rake docs:publish[$VERSION,$DOCS_DESTINATION]
if [ -n $VERSION ]; then
echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'"
rake docs:publish[$VERSION,$DOCS_DESTINATION]
fi
fi

0 comments on commit 1add8f5

Please sign in to comment.