From 275a9df928590fbe590fcfed9eb30d794fb3fa6b Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 20 Jan 2015 01:09:20 -0500 Subject: fixes #1621 - travis after_script upload all Images to s3 with build status and index --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index fd2a6b6d1..fcc273437 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,16 @@ script: - echo -en 'travis_fold:end:script.3\\r' - 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. #after_script: # - echo "Branch $TRAVIS_BRANCH (pull request: $TRAVIS_PULL_REQUEST) ready for flight testing." >> $PX4_REPORT -- cgit v1.2.3