From f70ee213ed3b9e612f51987b10555c8dd6c90e23 Mon Sep 17 00:00:00 2001 From: Steven Jardine Date: Wed, 24 Feb 2016 15:32:38 -0700 Subject: [PATCH 1/2] Add javadoc and sources jar to snapshot releases. --- .utility/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.utility/deploy.sh b/.utility/deploy.sh index 267b0677..6551358e 100755 --- a/.utility/deploy.sh +++ b/.utility/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash set -ev -if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then +if [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then echo "ossrh\${env.OSSRH_USER}\${env.OSSRH_PASS}" > ~/settings.xml - mvn deploy --settings ~/settings.xml +mvn deploy -Prelease --settings ~/settings.xml fi From 178d2ba501d659d1b1f504cc3c45e2bd00c16418 Mon Sep 17 00:00:00 2001 From: Steven Jardine Date: Wed, 24 Feb 2016 15:33:03 -0700 Subject: [PATCH 2/2] Fix javadoc upload on successful travis build. --- .utility/update_site_apidocs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.utility/update_site_apidocs.sh b/.utility/update_site_apidocs.sh index 6bf65863..d0c3d0e4 100755 --- a/.utility/update_site_apidocs.sh +++ b/.utility/update_site_apidocs.sh @@ -9,7 +9,7 @@ fi echo -e "Publishing javadoc to gh-pages . . .\n" -cp -R ./gwtbootstrap3-extras/target/javadoc $HOME/javadoc-latest +cp -R -v ./target/apidocs $HOME/javadoc-latest git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" @@ -28,7 +28,7 @@ cp -Rf $HOME/javadoc-latest ./snapshot/extras-apidocs git add -f . git commit -m "Auto-push javadoc to gh-pages successful. (Travis build: $TRAVIS_BUILD_NUMBER)" -git push -fq origin gh-pages > /dev/null +git push -fq origin gh-pages echo -e "Published javadoc to gh-pages.\n"