forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatically generate a javadocs page
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
# 2. Nothing | ||
# 3. Deploy to s3 (old hadoop) | ||
# 4. deploy to sonatype (yarn hadoop) (this build will also generate specific poms for yarn hadoop) | ||
# 5. Nothing | ||
# 5. Deploy Javadocs. | ||
# 6. deploy to s3 (yarn hadoop) | ||
|
||
# Changes (since travis changed the id assignment) | ||
|
@@ -80,7 +80,24 @@ if [[ $TRAVIS_PULL_REQUEST == "false" ]] ; then | |
mvn -B -f pom.hadoop2.xml -DskipTests -Dmaven.javadoc.skip=true deploy --settings deploysettings.xml; | ||
fi | ||
|
||
|
||
if [[ $TRAVIS_JOB_NUMBER == *5 ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $CURRENT_STRATOSPHERE_VERSION == *SNAPSHOT* ]] ; then | ||
cd stratosphere-java | ||
mvn javadoc:javadoc | ||
cd target | ||
cd apidocs | ||
git init | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis-CI" | ||
git add * | ||
git commit -am "Javadocs from '$(date)'" | ||
git config credential.helper "store --file=.git/credentials" | ||
echo "https://$JAVADOCS_DEPLOY:@github.com" > .git/credentials | ||
git push -f https://github.com/stratosphere-javadocs/stratosphere-javadocs.github.io.git master:master | ||
rm .git/credentials | ||
cd .. | ||
cd .. | ||
cd .. | ||
fi | ||
|
||
# | ||
# Deploy binaries to DOPA | ||
|