From d7dd02e9229b97607e43df02d6e8a7f15e2f82f2 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 26 Feb 2018 11:36:55 +0100 Subject: [PATCH] Do not try to deploy android apks if we are not building them. --- travis/compile_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/compile_all.py b/travis/compile_all.py index a048a1d..ba2b887 100755 --- a/travis/compile_all.py +++ b/travis/compile_all.py @@ -168,7 +168,7 @@ elif PLATFORM == 'win32_static': ('{}.exe'.format(b) for b in kiwix_tools_bins)) elif PLATFORM == 'armhf_static': make_archive('kiwix-tools_armhf-{}.'.format(kiwix_tools_postfix), kiwix_tools_bins) -elif PLATFORM.startswith('android_'): +elif PLATFORM.startswith('android_') and 'kiwix-android' in TARGETS: APK_NAME = "kiwix-{}".format(PLATFORM) source_debug_dir = BASE_DIR/'kiwix-android'/'app'/'build'/'outputs'/'apk'/'kiwix'/'debug' source_release_dir = BASE_DIR/'kiwix-android'/'app'/'build'/'outputs'/'apk'/'kiwix'/'release'