Commit c74b368c authored by Daniel Agar's avatar Daniel Agar

android deploy releases to beta first then production

parent d7e1770e
...@@ -185,16 +185,26 @@ after_success: ...@@ -185,16 +185,26 @@ after_success:
# android google play deploy # android google play deploy
- export GOOGLE_PLAY_TRACK=none; - export GOOGLE_PLAY_TRACK=none;
# master development builds to beta track
# tagged releases first to beta track then move to production
- if [ "${TRAVIS_TAG}" ]; then - if [ "${TRAVIS_TAG}" ]; then
GOOGLE_PLAY_TRACK=production; GOOGLE_PLAY_TRACK=production;
elif [ "${TRAVIS_BRANCH}" = "master" ]; then elif [ "${TRAVIS_BRANCH}" = "master" ]; then
GOOGLE_PLAY_TRACK=beta; GOOGLE_PLAY_TRACK=beta;
fi fi
# deploy beta
- if [[ "${SPEC}" = "android-g++" && "${TRAVIS_PULL_REQUEST}" = "false" && "${GOOGLE_PLAY_TRACK}" != "none" ]]; then - if [[ "${SPEC}" = "android-g++" && "${TRAVIS_PULL_REQUEST}" = "false" && "${GOOGLE_PLAY_TRACK}" != "none" ]]; then
pip install --user google-api-python-client PyOpenSSL && pip install --user google-api-python-client PyOpenSSL &&
echo "Google Play Track:" ${GOOGLE_PLAY_TRACK} && echo "Google Play Track beta" &&
openssl aes-256-cbc -K $encrypted_25db6eb7c3fd_key -iv $encrypted_25db6eb7c3fd_iv -in android/Google_Play_Android_Developer-4432a3c4f5d1.json.enc -out android/Google_Play_Android_Developer-4432a3c4f5d1.json -d &&
./tools/google_play_upload.py beta org.mavlink.qgroundcontrol ${SHADOW_BUILD_DIR}/release/package/QGroundControl.apk;
fi
# deploy production
- if [[ "${SPEC}" = "android-g++" && "${TRAVIS_PULL_REQUEST}" = "false" && "${GOOGLE_PLAY_TRACK}" = "production" ]]; then
echo "Google Play Track production" &&
openssl aes-256-cbc -K $encrypted_25db6eb7c3fd_key -iv $encrypted_25db6eb7c3fd_iv -in android/Google_Play_Android_Developer-4432a3c4f5d1.json.enc -out android/Google_Play_Android_Developer-4432a3c4f5d1.json -d && openssl aes-256-cbc -K $encrypted_25db6eb7c3fd_key -iv $encrypted_25db6eb7c3fd_iv -in android/Google_Play_Android_Developer-4432a3c4f5d1.json.enc -out android/Google_Play_Android_Developer-4432a3c4f5d1.json -d &&
./tools/google_play_upload.py ${GOOGLE_PLAY_TRACK} org.mavlink.qgroundcontrol ${SHADOW_BUILD_DIR}/release/package/QGroundControl.apk; ./tools/google_play_upload.py production org.mavlink.qgroundcontrol ${SHADOW_BUILD_DIR}/release/package/QGroundControl.apk;
fi fi
before_deploy: before_deploy:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment