Squash stdout/stderr in gh-pages push

Previously if there was a problem communicating to GitHub or if there was an issue with the GH_TOKEN the token would be displayed and stored in Travis. This update hides the token but still indicates the result for Travis.
This commit is contained in:
Matt Klich 2014-04-07 22:46:17 -06:00
parent bade22ff49
commit dabfd05236

View File

@ -23,7 +23,9 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
cp -Rf ../javadoc ./javadoc
git add -f .
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
git push -fq origin gh-pages > /dev/null
echo "Done magic with auto publishment to gh-pages."
if ! git push -fq origin gh-pages &> /dev/null; then
echo "Error pushing gh-pages to origin. Bad GH_TOKEN? GitHub down?"
else
echo "Done magic with auto publishment to gh-pages."
fi
fi