Skip to content
Permalink
Browse files
Merge pull request #9 from apilloud/release-2.12.0
Update wheels process to stage to gcs and pull version from branch
  • Loading branch information
aaltay committed Apr 23, 2019
2 parents 0d81a3a + 3781aca commit 40c0bd1a36d70736b84e925889cdad417e429fd4
Showing 3 changed files with 16 additions and 31 deletions.
@@ -7,9 +7,9 @@ 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}
- BEAM_SVN_DIR=https://dist.apache.org/repos/dist/dev/beam
- ZIP_FILE=apache-beam-${VERSION}.zip

- PLAT=x86_64
@@ -91,8 +91,13 @@ install:
script:
- build_wheel apache-beam-${VERSION} $PLAT

after_success:
- ls -lh ${TRAVIS_BUILD_DIR}/wheelhouse/

- source deploy_travis.sh
- deploy
deploy:
provider: gcs
access_key_id: ${ACCESS_KEY_ID}
secret_access_key: ${SECRET_ACCESS_KEY}
bucket: "beam-wheels-staging"
skip_cleanup: true
acl: public-read
local-dir: wheelhouse
on:
all_branches: true
@@ -44,13 +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 `APACHE_USERNAME` and `APACHE_SECRET` with 'Display value in build log' disabled(which encrypt your credential).
* 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.

__NOTE__: If you have special characters in your credential, please escape them following the [guide](https://docs.travis-ci.com/user/encryption-keys/#note-on-escaping-certain-symbols) properly.
* 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.

* Create and push a new branch(e.g. release_2_6_0) into your folk beam-wheels repository, which will trigger the travis build.

* Confirm that build successful and wheels get staged on dist.apache.org.

* Delete your apache credential in travis environment.
* Confirm that build successful and wheels get staged in beam-wheels-staging.

This file was deleted.

0 comments on commit 40c0bd1

Please sign in to comment.