mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
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:
parent
bade22ff49
commit
dabfd05236
@ -23,7 +23,9 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|||||||
cp -Rf ../javadoc ./javadoc
|
cp -Rf ../javadoc ./javadoc
|
||||||
git add -f .
|
git add -f .
|
||||||
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
|
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
|
if ! git push -fq origin gh-pages &> /dev/null; then
|
||||||
|
echo "Error pushing gh-pages to origin. Bad GH_TOKEN? GitHub down?"
|
||||||
echo "Done magic with auto publishment to gh-pages."
|
else
|
||||||
|
echo "Done magic with auto publishment to gh-pages."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user