diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-16 07:47:24 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-16 07:47:24 +0400 |
commit | 4afb9a311acf619be56f134de043c2f6e2c8fdc1 (patch) | |
tree | cac75dd4b2f23de2516c2132a142a95846c526fd | |
parent | 432dd5d880edc35d7ab2a092e39ddcc00e06e2cb (diff) |
Modify travis build config to upload artifacts to builds-artifacts.piwik.org.
-rw-r--r-- | .travis.yml | 8 | ||||
-rwxr-xr-x | tests/travis/upload_artifacts.sh | 16 |
2 files changed, 23 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index a189332266..5a28f29340 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,9 @@ env: - TEST_SUITE=PluginTests - TEST_SUITE=CoreTests - TEST_SUITE=IntegrationTests - + global: + secure: "AMhZmPZx4SUcuZRBzGHlQPxzM4D8FvFB3UThDa52gbi9KIBrwcumzV2VGi6B\n5fgjwtB4XTE1In7qhY2HMikPWBmWYYOQ5QcMPJsqqHt4iMmahx8WKzne6NOk\nNpqAuje/fulNGeP2LJZi0nrub3Fh4VwXaOvpNloKNQN/2JuqPtM=" + # Run PHP 5.4 for aa tests to generate # code coverage. @@ -45,6 +47,10 @@ after_success: - cd $TRAVIS_BUILD_DIR - ./tests/travis/generate_docs.sh +after_script: + - cd $TRAVIS_BUILD_DIR + - ./tests/travis/upload_artifacts.sh + notifications: irc: skip_join: true diff --git a/tests/travis/upload_artifacts.sh b/tests/travis/upload_artifacts.sh new file mode 100755 index 0000000000..1d829c4ca5 --- /dev/null +++ b/tests/travis/upload_artifacts.sh @@ -0,0 +1,16 @@ +if [ "$TEST_SUITE" != "IntegrationTests" ]; +then + echo "No artifacts for $TEST_SUITE tests."; + exit; +fi + +url="http://builds-artifacts.piwik.org/upload.php?auth_key=$ARTIFACTS_PASS&artifact_name=processed&branch=$TRAVIS_BRANCH&build_id=$TRAVIS_JOB_NUMBER" + +echo "Uploading artifacts for $TEST_SUITE..." + +cd ./tests/PHPUnit/Integration + +# upload processed tarball +tar -cjf processed.tar.bz2 processed --exclude='.gitkeep' +curl -X POST --data-binary @processed.tar.bz2 "$url" + |