mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
[TRAVIS] Print a '.' every 50 files added to an archive.
It will avoid travis-ci to kill the job because of the absence of output.
This commit is contained in:
@ -195,8 +195,13 @@ def make_deps_archive(target, full=False):
|
||||
files_to_archive += HOME.glob('**/TOOLCHAINS')
|
||||
relative_path = HOME
|
||||
|
||||
counter = 50
|
||||
with tarfile.open(str(relative_path/archive_name), 'w:gz') as tar:
|
||||
for name in set(files_to_archive):
|
||||
counter -= 1
|
||||
if not counter:
|
||||
print('.', end='', flush=True)
|
||||
counter = 50
|
||||
tar.add(str(name), arcname=str(name.relative_to(relative_path)))
|
||||
return relative_path/archive_name
|
||||
|
||||
|
Reference in New Issue
Block a user