From 90946d8c0dc9fcbffc46f70cda949282477d7c3e Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 5 Dec 2017 14:25:17 +0000 Subject: [PATCH] Skip the Haddock step on macOS. I don't think it ever uncovered any bugs that the Linux bot missed. This should speed up the build a little. --- travis-script.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/travis-script.sh b/travis-script.sh index dce642b32..95ded28e6 100755 --- a/travis-script.sh +++ b/travis-script.sh @@ -104,8 +104,10 @@ if [ "x$CABAL_INSTALL_ONLY" != "xYES" ] ; then # Cabal otherwise). timed cabal new-build $jobs Cabal Cabal:unit-tests Cabal:check-tests Cabal:parser-tests Cabal:parser-hackage-tests --enable-tests - # Run haddock - (cd Cabal && timed cabal act-as-setup --build-type=Simple -- haddock --builddir=${CABAL_BDIR}) || exit $? + # Run haddock. + if [ "$TRAVIS_OS_NAME" = "linux" ]; then + (cd Cabal && timed cabal act-as-setup --build-type=Simple -- haddock --builddir=${CABAL_BDIR}) || exit $? + fi # Check for package warnings (cd Cabal && timed cabal check) || exit $? @@ -163,7 +165,9 @@ fi # Haddock # TODO: Figure out why this needs to be run before big tests -(cd cabal-install && timed ${CABAL_INSTALL_SETUP} haddock --builddir=${CABAL_INSTALL_BDIR} ) || exit $? +if [ "$TRAVIS_OS_NAME" = "linux" ]; then + (cd cabal-install && timed ${CABAL_INSTALL_SETUP} haddock --builddir=${CABAL_INSTALL_BDIR} ) || exit $? +fi # Tests need this timed ${CABAL_INSTALL_BDIR}/build/cabal/cabal update -- 2.11.4.GIT