Skip to content

Commit

Permalink
Merge pull request #9 from apilloud/release-2.12.0
Browse files Browse the repository at this point in the history
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 40c0bd1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
13 changes: 5 additions & 8 deletions README.md
Expand Up @@ -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.
17 changes: 0 additions & 17 deletions deploy_travis.sh

This file was deleted.

0 comments on commit 40c0bd1

Please sign in to comment.