From 9ad07fe550b4e9b54f534c95cec86972302613a1 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 14 Jun 2018 17:07:36 +0200 Subject: [PATCH] Travis, do not try to compile deps if not needed. --- travis/compile_all.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/travis/compile_all.py b/travis/compile_all.py index 91c5a28..6b37c11 100755 --- a/travis/compile_all.py +++ b/travis/compile_all.py @@ -62,7 +62,11 @@ Generated at {date} date=date.today().isoformat())) -def run_kiwix_build(target, platform, build_deps_only=False, make_release=False, make_dist=False): +def run_kiwix_build(target, platform, + build_deps_only=False, + target_only=False, + make_release=False, + make_dist=False): command = ['kiwix-build'] command.append(target) command.append('--hide-progress') @@ -76,6 +80,8 @@ def run_kiwix_build(target, platform, build_deps_only=False, make_release=False, command.extend(['--target-platform', platform]) if build_deps_only: command.append('--build-deps-only') + if target_only: + command.append('--build-nodeps') if make_release: command.append('--make-release') if make_dist: @@ -276,7 +282,8 @@ for target in TARGETS: run_kiwix_build(target, platform=PLATFORM, - make_release=make_release) + make_release=make_release, + target_only=True) if target == 'kiwix-desktop': create_app_image() if make_release and PLATFORM == 'native_dyn':