Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #283 from sjardine/master
Browse files Browse the repository at this point in the history
Fixed scripts on travis-ci successful build.
  • Loading branch information
sjardine committed Feb 24, 2016
2 parents ff6e906 + 178d2ba commit fdaf3db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .utility/deploy.sh
Original file line number Diff line number Diff line change
@@ -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 "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
mvn deploy --settings ~/settings.xml
mvn deploy -Prelease --settings ~/settings.xml
fi
4 changes: 2 additions & 2 deletions .utility/update_site_apidocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git config --global user.name "travis-ci"
Expand All @@ -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"

Expand Down

0 comments on commit fdaf3db

Please sign in to comment.