From bae484f7aeb020cf6c24ab51c32b149f5cfcb33c Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 12 Jul 2018 17:46:06 +0200 Subject: [PATCH] [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. --- travis/compile_all.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/travis/compile_all.py b/travis/compile_all.py index 9151f91..fc308c2 100755 --- a/travis/compile_all.py +++ b/travis/compile_all.py @@ -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