Also create the archive in PR.

This way we are testing that archives are well done in the PR, not
after the merge.
This commit is contained in:
Matthieu Gautier 2019-02-18 11:29:42 +01:00
parent 4230ece400
commit f3ba9346ac
1 changed files with 12 additions and 0 deletions

View File

@ -332,6 +332,18 @@ if environ['TRAVIS_EVENT_TYPE'] != 'cron' and not make_release:
run_kiwix_build(target,
platform=PLATFORM)
if PLATFORM == 'native_mixed':
make_archive('libzim', 'linux-x86_64')
elif PLATFORM == 'native_static':
for target in ('kiwix-tools', 'zim-tools', 'zimwriterfs'):
make_archive(target, 'linux-x86_64')
elif PLATFORM == 'win32_static':
make_archive('kiwix-tools', 'win-i686')
elif PLATFORM == 'armhf_static':
make_archive('kiwix-tools', 'linux-armhf')
elif PLATFORM == 'i586_static':
make_archive('kiwix-tools', 'linux-i586')
sys.exit(0)