Skip to content

Commit 58f230d

Browse files
committed
make sure travis sees some output in time
1 parent 56b7128 commit 58f230d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ script:
9292
- make -C mpy-cross -j2
9393
- echo -en 'travis_fold:end:mpy-cross\\r'
9494

95-
- cd tools && python3 build_release_files.py
95+
# Use unbuffered output because building all the releases can take a long time.
96+
# Travis will cancel the job if it sees no output for >10 minutes.
97+
- cd tools && python3 -u build_release_files.py
9698
- cd ..
9799

98100
- echo 'Building unix' && echo -en 'travis_fold:start:unix\\r'

tools/build_release_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
if travis:
7272
print('travis_fold:end:adafruit-bins-{}-{}\\r'.format(language, board))
7373

74-
print()
74+
# Flush so travis will see something before 10 minutes has passed.
75+
print(flush=True)
7576

7677
sys.exit(exit_status)

0 commit comments

Comments
 (0)