Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(travis): try working around Travis + gitstats issue
Browse files Browse the repository at this point in the history
See travis-ci/travis-ci#4704 (comment)
for the workaround
  • Loading branch information
sudden6 committed Dec 30, 2017
1 parent e5a85dc commit 4c98094
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis/build-gitstats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ get_repo() {
}

make_stats() {
# workaround gitstats not supporting non-blocking IO correctly see
# https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
python -c 'import os,sys,fcntl;\
flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL);\
fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
gitstats \
-c authors_top=1000 \
-c max_authors=100000 \
Expand Down

0 comments on commit 4c98094

Please sign in to comment.