fixes #1621 - travis after_script upload all Images to s3 with build status and index

This commit is contained in:
Daniel Agar
2015-01-20 01:09:20 -05:00
parent fa4d090185
commit 275a9df928
+10
View File
@@ -52,6 +52,16 @@ script:
- echo -en 'travis_fold:end:script.3\\r' - echo -en 'travis_fold:end:script.3\\r'
- zip Firmware.zip Images/*.px4 - zip Firmware.zip Images/*.px4
after_script:
- git clone git://github.com/PX4/CI-Tools.git
- ./CI-Tools/s3cmd-configure
# upload newest build for this branch with s3 index
- ./CI-Tools/s3cmd-put Images/px4*.px4 CI-Tools/directory/index.html $TRAVIS_BRANCH/
# archive newest build by date with s3 index
- ./CI-Tools/s3cmd-put Images/px4*.px4 CI-Tools/directory/index.html $TRAVIS_BRANCH/archives/`date "+%Y-%m-%d"`-$TRAVIS_BUILD_ID/
# upload top level index.html and timestamp.html
- ./CI-Tools/s3cmd-put CI-Tools/index.html timestamp.html /
# We use an encrypted env variable to ensure this only executes when artifacts are uploaded. # We use an encrypted env variable to ensure this only executes when artifacts are uploaded.
#after_script: #after_script:
# - echo "Branch $TRAVIS_BRANCH (pull request: $TRAVIS_PULL_REQUEST) ready for flight testing." >> $PX4_REPORT # - echo "Branch $TRAVIS_BRANCH (pull request: $TRAVIS_PULL_REQUEST) ready for flight testing." >> $PX4_REPORT