Skip to content

Commit

Permalink
automatically generate a javadocs page
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Apr 1, 2014
1 parent d61d87f commit 33525af
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ notifications:

env:
global:
# username and password for sonatype (maven delpoy)
# username and password for sonatype (maven deploy)
- secure: "QoLd3npmApUw20q+KTt+6Il07bn/edl5pP3jmEqR+rXQXVA2kogjkZerZ5QdM2iQJha7D1M2Y4BTcsJ2Ty7biTxUZkDl+RXz6kpeHPX2alax/KO7mqrJuEfuPAQvaIdHNmKEmdiU/fLMn2q2HllE5MP7FzUNKD5YJIzh1IekPA8="
- secure: "WzMGwNwWwWw62kwvknMGS4W1zy3oRVihitCjjd5wqk/4JMTeWr+oAMv0GfA8GbOuOcYwA7JNxGXQlBMtn45+/PMLJgnsLxYUbqCD2ybwMBLlnembGYoRPABp5zkuzRmU3G2cbMdu/7VwvlTffEPPG/jqAFLKxmvG0oIOtPtk3lg="
# New s3 deployment
- ARTIFACTS_S3_BUCKET="stratosphere-bin"
- secure: "An/pEveBDMBl6FcZimTfZBAvevAVgkwS2tSAzFblJzp5aofghPORIXiqW/2Dy4ksFkGDK2Yb6QaGXbqC3mbWcPQh7YYeiPbvRipDXe4D+emgoUAiuuxCGvqtgzKxb0VeBeCqrMuNOoO4yLeCXgNZBuZ3B8LjQQCpAyyCWW1f/yo="
- secure: "fT1qY3/JbDCL+o+XXkU92fuMrZehkLntu8DRNyCeq1eB9SOH/QA7+3S6S2kZZ++aWaTxXKy65V9rO9DWra+KMgeDDkM+ykoSq4CeTjZso5ZXf0GDa2RcnZ5d5BN8UVV/2iyp79ZrQPy7Yer9MrGhrjC5Mo5cFbxoNbn5UV7Y9Uc="
# javadocs deploy
- secure: "f5arQJrRMyZhogH3KihohKXhb4nwCQdEshtUoOt/KfOwS9OrODblOB5k2CbxzKkR1xhTMWRzSkOLx0bCGN31xbnXDfJ2pqZDIQSn+BlhE/aIyFM0KOc2lq+cbFwnCRF8fdkmfPO28WtRpvjoddQ7Hp/16E7Z7X+aI5IKcH3cuIA="
matrix:
- PROFILE=
- PROFILE="-Dhadoop.profile=2"
Expand Down
21 changes: 19 additions & 2 deletions tools/deploy_to_maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33525af

Please sign in to comment.