Skip to content

Commit

Permalink
travis-ci fix google play deploy
Browse files Browse the repository at this point in the history
-explicitly set correct s3 region
  • Loading branch information
dagar committed Nov 14, 2015
1 parent 0cba4b9 commit e855eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ script:
after_success:
- if [[ "${TRAVIS_OS_NAME}" = "android" && "${TRAVIS_PULL_REQUEST}" = "false" && "${TRAVIS_BRANCH}" = "master" ]]; then
pip install --user google-api-python-client PyOpenSSL
&& openssl aes-256-cbc -K $encrypted_25db6eb7c3fd_key -iv $encrypted_25db6eb7c3fd_iv -in Google_Play_Android_Developer-bb93ae7d61ca.p12.enc -out android/Google_Play_Android_Developer-bb93ae7d61ca.p12 -d
&& cd ${SHADOW_BUILD_DIR} && openssl aes-256-cbc -K $encrypted_25db6eb7c3fd_key -iv $encrypted_25db6eb7c3fd_iv -in ${TRAVIS_BUILD_DIR}/Google_Play_Android_Developer-bb93ae7d61ca.p12.enc -out Google_Play_Android_Developer-bb93ae7d61ca.p12 -d
&& ${TRAVIS_BUILD_DIR}/tools/google_play_upload.py org.mavlink.qgroundcontrol ${SHADOW_BUILD_DIR}/release/package/qgroundcontrol.apk
;
fi
Expand All @@ -137,6 +137,7 @@ deploy:
local_dir: ${SHADOW_BUILD_DIR}/release/package
upload-dir: ${TRAVIS_BRANCH}
acl: public_read
region: us-west-2
skip_cleanup: true
on:
all_branches: true
Expand All @@ -160,6 +161,7 @@ deploy:
local_dir: ${TRAVIS_BUILD_DIR}/src/html
upload-dir: doxygen
acl: public_read
region: us-west-2
skip_cleanup: true
branch: master
on:
Expand Down
2 changes: 1 addition & 1 deletion tools/google_play_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
def main():
# Load the key in PKCS 12 format that you downloaded from the Google APIs
# Console when you created your Service account.
f = file('android/Google_Play_Android_Developer-bb93ae7d61ca.p12', 'rb')
f = file('Google_Play_Android_Developer-bb93ae7d61ca.p12', 'rb')
key = f.read()
f.close()

Expand Down

0 comments on commit e855eb0

Please sign in to comment.