From 3148881fa2a4c462d446e19cd099fb3aa96bc387 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 11 Jan 2018 08:24:11 -0800 Subject: [PATCH] Move travis workaround earlier Try to get it used on OSX as well --- library/stdarch/.travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/stdarch/.travis.yml b/library/stdarch/.travis.yml index 70120ce0169b..d3192f55f8a5 100644 --- a/library/stdarch/.travis.yml +++ b/library/stdarch/.travis.yml @@ -37,13 +37,16 @@ matrix: allow_failures: - env: RUSTFMT=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1 - env: CLIPPY=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1 + +before_install: + # FIXME (travis-ci/travis-ci#8920) shouldn't be necessary... + - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" + install: - if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi script: - cargo generate-lockfile - # FIXME (travis-ci/travis-ci#8920) shouldn't be necessary... - - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" - ci/run-docker.sh $TARGET $FEATURES notifications: