[TRAVIS] Use target_only only if we are building in a cron.

The deps will be build only if we are in a cron.
In this case, we can directly build only the target.

But in other case, we have to build the target and its dependencies.
This commit is contained in:
Matthieu Gautier 2018-06-18 17:54:44 +02:00
parent c3cacb387f
commit 37e2b709f8
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ for target in TARGETS:
run_kiwix_build(target,
platform=PLATFORM,
make_release=make_release,
target_only=True)
target_only=environ['TRAVIS_EVENT_TYPE'] == 'cron')
if target == 'kiwix-desktop':
create_app_image()
if make_release and PLATFORM == 'native_dyn':