From 07147f42c2cbb47fddc4c67587e629a74c22fdd6 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Fri, 3 Feb 2017 13:05:06 +0200 Subject: [PATCH] Try to speed up OS X builds --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index af21d3d9..582d9a41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -175,7 +175,13 @@ script: set -ex case "$BUILD" in stack) - stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps + if [ `uname` = "Darwin" ] + then + # Use slightly less intensive options on OS X due to Travis timeouts + stack --no-terminal $ARGS test --fast + else + stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps + fi ;; cabal) cabal install --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES