Add logging

This commit is contained in:
Andreas Dangel
2018-05-31 13:06:39 +02:00
parent 0263f658c6
commit 9df2aed725

View File

@@ -61,6 +61,8 @@ zip -qr pmd-doc-${VERSION}.zip pmd-doc-${VERSION}/
# Push the generated site to gh-pages branch
#
if [[ "${VERSION}" == *-SNAPSHOT && "${TRAVIS_BRANCH}" == "master" ]]; then
echo -e "\n\n"
log_info "Pushing the new site to github pages..."
git config user.name "Travis CI (pmd-bot)"
git config user.email "andreas.dangel+pmd-bot@adangel.org"
git clone --branch gh-pages --depth 1 git@github.com:pmd/pmd.git pmd-gh-pages
@@ -74,6 +76,7 @@ if [[ "${VERSION}" == *-SNAPSHOT && "${TRAVIS_BRANCH}" == "master" ]]; then
git commit -q -m "Update documentation"
git push git@github.com:pmd/pmd.git HEAD:gh-pages
)
log_success "Successfully pushed site to https://pmd.github.io/pmd/"
fi
popd