Skip to content

Commit c34749e

Browse files
author
Vladimir Kotal
committed
add conditions + exec bit
1 parent 17ce305 commit c34749e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dev/javadoc.sh

100644100755
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -e
44

5+
if [[ "${TRAVIS_REPO_SLUG}" != "oracle/opengrok" ||
6+
"${TRAVIS_PULL_REQUEST}" == "true" ||
7+
"${TRAVIS_BRANCH}" != "master" ]]; then
8+
exit 0
9+
fi
10+
11+
echo -e "Publishing javadoc...\n"
12+
513
mvn -DskipTests=true site
614

715
git config --global user.email "[email protected]"
@@ -17,3 +25,5 @@ cp -Rf ${TRAVIS_BUILD_DIR}/target/site/apidocs ./javadoc
1725
git add -f ./javadoc
1826
git commit -m "Lastest javadoc auto-pushed to gh-pages"
1927
git push -fq origin gh-pages
28+
29+
echo -e "Published Javadoc to gh-pages.\n"

0 commit comments

Comments
 (0)