This repository has been archived by the owner on Nov 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on auto generating javadoc for gwtbootstrap3-extras.
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
set -ev | ||
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then | ||
|
||
if [[ -z "$GH_TOKEN" ]]; then | ||
echo -e "GH_TOKEN is not set" | ||
exit 1 | ||
fi | ||
|
||
echo -e "Publishing javadoc to gh-pages . . .\n" | ||
|
||
cp -R ./gwtbootstrap3-extras/target/javadoc $HOME/javadoc-latest | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "travis-ci" | ||
|
||
# clone the gh-pages branch. | ||
cd $HOME | ||
rm -rf gh-pages | ||
git clone --quiet --branch=gh-pages https://$GH_TOKEN@github.com/gwtbootstrap3/gwtbootstrap3-demo gh-pages > /dev/null | ||
cd gh-pages | ||
|
||
# remove the javadoc directories from git. | ||
git rm -rf ./snapshot/extras-apidocs | ||
|
||
# copy the new javadoc to snapshot dir. | ||
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 | ||
|
||
echo -e "Published javadoc to gh-pages.\n" | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters