From dabfd0523617925ec1e08d46810d5e3112270009 Mon Sep 17 00:00:00 2001 From: Matt Klich Date: Mon, 7 Apr 2014 22:46:17 -0600 Subject: [PATCH] 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. --- .utility/push-javadoc-to-gh-pages.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.utility/push-javadoc-to-gh-pages.sh b/.utility/push-javadoc-to-gh-pages.sh index 4bd8fdc05b..f34b977753 100755 --- a/.utility/push-javadoc-to-gh-pages.sh +++ b/.utility/push-javadoc-to-gh-pages.sh @@ -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