Skip to content

Commit

Permalink
Try fcntl only fix for documentation build
Browse files Browse the repository at this point in the history
re-added mechanism to catch build failure which
would not work running through pv.

[ci docs] [ci all]
  • Loading branch information
tdaff committed Jan 15, 2018
1 parent bb658f0 commit 20f4c22
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/travis/travis.yml
Expand Up @@ -75,7 +75,6 @@ install:
# builds.
# Requires 'sudo' on Travis; i.e. not compatible with container builds.
# pandoc is required for nbconvert in docs; gsl and xpm are for atomeye.
# pv stops truncated logs https://github.com/travis-ci/travis-ci/issues/8189
- if [ "${RUN}" == "true" ]; then
sudo add-apt-repository -y "ppa:ubuntu-toolchain-r/test";
sudo apt-get -yq update;
Expand All @@ -90,8 +89,7 @@ install:
libhdf5-serial-dev
pandoc
libgsl0-dev
libxpm-dev
pv;
libxpm-dev;
fi

# If build uses a different GCC, then install it and put
Expand Down Expand Up @@ -139,12 +137,10 @@ script:
after_success:
# There is no notification if the docs fail to build,
# so cause a failure by timeout using a long sleep :)
# NOTE: Temporarily disabled this mechanism so we can get the whole output of build_docs - mv
# fcntl, pv and sleep added due to https://github.com/travis-ci/travis-ci/issues/8189
# fcntl added due to https://github.com/travis-ci/travis-ci/issues/8189
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- if [ "${DOCS}" == "true" ] && [ ${TRAVIS_PYTHON_VERSION} == 2.7 ]; then
tests/travis/build_docs.sh | pv -q -L 3k;
sleep 2m;
tests/travis/build_docs.sh || sleep 11m;
fi

# Public and private docker images with GAP, pushed from here
Expand Down

0 comments on commit 20f4c22

Please sign in to comment.