This is an automated email from the ASF dual-hosted git repository. robertwb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/beam-wheels.git
commit 12ddcf55c30228eec22fa5a6f1707e0967a8b2ca Author: Robert Bradshaw <rober...@google.com> AuthorDate: Wed Feb 13 12:38:17 2019 +0100 Push to Bintray. --- .travis.yml | 8 +++++++- deploy_bintray.sh | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9d779c8..1b2a41f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,14 @@ osx_image: xcode6.4 env: global: + - VERSION=2.10.0 + # The actual value here doesn't matter, but changing this value + # is an easy way to trigger a re-build. + - ATTEMPT=x + - PYTHON_ARTIFACTS_DIR=python - STAGING=https://dist.apache.org/repos/dist/dev/beam/${VERSION}/${PYTHON_ARTIFACTS_DIR} + - BEAM_BINTRAY_PATH=robertwb/beam-wheels/wheels - BEAM_SVN_DIR=https://dist.apache.org/repos/dist/dev/beam - ZIP_FILE=apache-beam-${VERSION}.zip @@ -58,5 +64,5 @@ script: after_success: - ls -lh ${TRAVIS_BUILD_DIR}/wheelhouse/ - - source deploy_travis.sh + - source deploy_bintray.sh - deploy diff --git a/deploy_bintray.sh b/deploy_bintray.sh new file mode 100755 index 0000000..91b697e --- /dev/null +++ b/deploy_bintray.sh @@ -0,0 +1,19 @@ +# Define custom utilities for deploying to bintray on travis + +set -e + +BINTRAY_API_URL=https://bintray.com/api/v1 +TRAVIS_BUILD_DIR=travis-build-dir + +function deploy { + cd ${TRAVIS_BUILD_DIR}/wheelhouse + # Push a single tarball to simplify fetching them all. + # Use -J to take advantage of cross-file redundancy for compression. + ARCHIVE=all-wheels-${VERSION}.tar.xz + tar -cvJf ${ARCHIVE} *.whl + curl \ + -v \ + -T ${ARCHIVE} \ + -u "${BINTRAY_USERNAME}:${BINTRAY_SECRET}" \ + "${BINTRAY_API_URL}/content/${BEAM_BINTRAY_PATH}/${VERSION}/${ARCHIVE}?publish=1&override=1" +}