Skip to content
Permalink
Browse files
Fetch version from branch.
  • Loading branch information
apilloud committed Apr 22, 2019
1 parent 9a2f2a8 commit 3781aca3e9e11f0014c291815c92f6385d97c5e5
Showing 2 changed files with 4 additions and 2 deletions.
@@ -7,6 +7,7 @@ osx_image: xcode8

env:
global:
- VERSION=$(echo ${TRAVIS_BRANCH} | sed 's/release-//')
- PYTHON_ARTIFACTS_DIR=python
- STAGING=https://dist.apache.org/repos/dist/dev/beam/${VERSION}/${PYTHON_ARTIFACTS_DIR}
- ZIP_FILE=apache-beam-${VERSION}.zip
@@ -98,3 +99,5 @@ deploy:
skip_cleanup: true
acl: public-read
local-dir: wheelhouse
on:
all_branches: true
@@ -44,11 +44,10 @@ There are 2 major parts in this repository.

* In travis build console > More options > Settings > Environment Variables:

* Add `VERSION` with 'Display value in build log' enabled (e.g.VERSION=2.6.0).
* Add `ACCESS_KEY_ID` and `SECRET_ACCESS_KEY` with 'Display value in build log' disabled.
These values can be obtained from the [GCP Storage Settings](https://console.cloud.google.com/storage/settings?project=apache-beam-testing)
under the interoperability tab.

* Create and push a new branch(e.g. release_2_6_0) into your fork beam-wheels repository, which will trigger the travis build.
* Create and push a new branch(e.g. release-2.6.0) into your fork beam-wheels repository, which will trigger the travis build of that version.

* Confirm that build successful and wheels get staged in beam-wheels-staging.

0 comments on commit 3781aca

Please sign in to comment.