Skip to content

Commit

Permalink
chore: avoid non-blocking IO for stdout to workaround "stdout: write …
Browse files Browse the repository at this point in the history
…error" in Travis

Try workaround travis-ci/travis-ci#4704 (comment)
  • Loading branch information
vlsi committed Jan 7, 2018
1 parent d7f0f27 commit 12bb084
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis/travis_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ set -x -e

if [[ "${FEDORA_CI}" == *"Y" ]];
then
# Try to prevent "stdout: write error"
# WA is taken from 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);'
export PARENT_VERSION=$(mvn -B -N org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.parent.version | grep -v '\[')
exec ./packaging/rpm_ci
fi
Expand Down

0 comments on commit 12bb084

Please sign in to comment.