summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-12-05 15:01:58 -0500
committerDan Halbert <halbert@halwitz.org>2018-12-05 15:01:58 -0500
commit58f230d63239a39b98aab7c1289bc1daccd59d43 (patch)
tree6a41eab51366f328705fcaf97c3eab3d4361ba5d
parent56b71281b3637e817d8b15f98a0dc1f37b138094 (diff)
make sure travis sees some output in time
-rwxr-xr-x.travis.yml4
-rwxr-xr-xtools/build_release_files.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 0a3c063e2..7e5611c73 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -92,7 +92,9 @@ script:
- make -C mpy-cross -j2
- echo -en 'travis_fold:end:mpy-cross\\r'
- - cd tools && python3 build_release_files.py
+ # Use unbuffered output because building all the releases can take a long time.
+ # Travis will cancel the job if it sees no output for >10 minutes.
+ - cd tools && python3 -u build_release_files.py
- cd ..
- echo 'Building unix' && echo -en 'travis_fold:start:unix\\r'
diff --git a/tools/build_release_files.py b/tools/build_release_files.py
index b01d4b8ea..6bf418fe6 100755
--- a/tools/build_release_files.py
+++ b/tools/build_release_files.py
@@ -71,6 +71,7 @@ for board in build_boards:
if travis:
print('travis_fold:end:adafruit-bins-{}-{}\\r'.format(language, board))
- print()
+ # Flush so travis will see something before 10 minutes has passed.
+ print(flush=True)
sys.exit(exit_status)