From 7c52d89be425ec286163190240b861a602b97126 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 9 Dec 2019 05:11:55 +0300 Subject: [PATCH] travis: speedup build by removing useless buildflavors before script --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 77a67d8d..b97ed526 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ android: components: - android-29 - build-tools-28.0.3 +before_script: + - sed -i "s/blue {}//" app/build.gradle + - sed -i "s/debug {}//" app/build.gradle before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ @@ -13,7 +16,7 @@ cache: - $HOME/.gradle/wrapper/ - $HOME/.android/build-cache after_success: - - $ANDROID_HOME/build-tools/28.0.3/apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey --ks-pass "pass:android" --key-pass "pass:android" --in $(find -name "*-blue-release-unsigned.apk") --out husky-release.apk + - $ANDROID_HOME/build-tools/28.0.3/apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey --ks-pass "pass:android" --key-pass "pass:android" --in $(find -name "*-green-release-unsigned.apk") --out husky-green-release.apk - wget https://raw.githubusercontent.com/FWGS/uploadtool/master/upload.sh - chmod +x upload.sh - - ./upload.sh husky-release.apk + - ./upload.sh husky-green-release.apk