Browse Source

fix(travis): try working around Travis + gitstats issue

See https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
for the workaround
reviewable/pr4877/r1
sudden6 8 years ago
parent
commit
4c98094551
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 5
      .travis/build-gitstats.sh

5
.travis/build-gitstats.sh

@ -32,6 +32,11 @@ get_repo() { @@ -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 \

Loading…
Cancel
Save