Skip to content

Commit

Permalink
Deploy snapshots and release binaries to amazon s3
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Dec 22, 2013
1 parent e067e95 commit e5d1fed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# s3 deployment based on http:https://about.travis-ci.org/blog/2012-12-18-travis-artifacts/

language: java
jdk:
- oraclejdk7
Expand All @@ -11,10 +13,18 @@ env:
# DOPA_USER and DOPA_PASS
- secure: "pa6c+tdIp4OVRH4sTw9aIfB26Xzj3TBL0u4WNlNdEaqa43Dz4dZGvg541q9+fyGk5FWVPbNwAiCjV4GgWnULFbYSfD1AHgluP+PpG/sXyES54X/EAjYkov2soX7/iVxsLe7cbVdfosh3vgEazvZq/nLcybs9f4h5+bZkMOnNEEI="
- secure: "kMPswo+PvtXpNsfkpwPVgZ33+bOZf5z7BC5Gv7+qHtDqgUom9PJtFsG4wUMU4hb9xx7sE125v2VfxIkDckOLNmAPRGawha7oNpdqBYrRhJPIsnrU/ruZIaKz/c2hWGOiICSgYhJPoac492bt3lBQb3fdo2ioHxzN/GYzT3SKpEk="
# 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="
matrix:
- PROFILE=
- PROFILE="-Dhadoop.profile=2"

before_script:
- "gem install travis-artifacts & "


install: true

script: "mvn -B $PROFILE clean verify"
Expand Down
8 changes: 6 additions & 2 deletions tools/deploy_to_maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ if [[ $TRAVIS_PULL_REQUEST == "false" ]] ; then
cp -r stratosphere-dist/target/stratosphere-dist-$CURRENT_STRATOSPHERE_VERSION-bin/stratosphere-$CURRENT_STRATOSPHERE_VERSION/* stratosphere/
tar -czf stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz stratosphere


sshpass -p "$DOPA_PASS" scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz $UBER_JAR $DOPA_USER@dopa.dima.tu-berlin.de:bin/
# upload the two in parallel
if [[ $TRAVIS_JOB_NUMBER == *5 ]] ; then
travis-artifacts upload --path $UBER_JAR --target-path /
fi
travis-artifacts upload --path stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz --target-path /
#sshpass -p "$DOPA_PASS" scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz $UBER_JAR [email protected]:bin/
fi

fi # pull request check
Expand Down

0 comments on commit e5d1fed

Please sign in to comment.