Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Problem: Javadocs is not generated and cannot be pushed to gh-pages
Browse files Browse the repository at this point in the history
Solution: Change publish-javadoc.sh to always generate javadoc
  • Loading branch information
msteinhoff committed Dec 29, 2016
1 parent b097a10 commit c31f498
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions travis/publish-javadoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

REPO_SLUG=msteinhoff/dropwizard-grpc

if [ -d "build/docs/javadoc" ] && [ "$TRAVIS_REPO_SLUG" == "$REPO_SLUG" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
if [ "$TRAVIS_REPO_SLUG" == "$REPO_SLUG" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then

echo -e "Building javadoc...\n"
./gradlew javadoc

echo -e "Publishing javadoc...\n"

cp -R build/docs/javadoc $HOME/javadoc-latest

cd $HOME
Expand Down

0 comments on commit c31f498

Please sign in to comment.