@@ -89,7 +89,6 @@ matrix:
91 allow_failures:
91 allow_failures:
92− - env: BUILD=cabal GHCVER=7.6.3 CABALVER=1.22 HAPPYVER=1.19.5 ALEXVER=3.1.7
93 - env: BUILD=cabal GHCVER=head CABALVER=head HAPPYVER=1.19.5 ALEXVER=3.1.7
92 - env: BUILD=cabal GHCVER=head CABALVER=head HAPPYVER=1.19.5 ALEXVER=3.1.7
94 - env: BUILD=stack ARGS="--resolver nightly"
93 - env: BUILD=stack ARGS="--resolver nightly"
@@ -100,6 +99,8 @@ before_install:
100# We want to always allow newer versions of packages when building on GHC HEAD
99# We want to always allow newer versions of packages when building on GHC HEAD
101- CABALARGS=""
100- CABALARGS=""
102- if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi
101- if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi
102+# Due to https://github.com/haskell/cabal/issues/3453, we don't build benchmarks on GHC 7.6.3
103+- if [ "x$GHCVER" != "x7.6.3" ]; then CABALARGS="$CABALARGS --enable-benchmarks"; fi
104# Download and unpack the stack executable
105# Download and unpack the stack executable
105- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.local/bin:/opt/alex/$ALEXVER/bin:/opt/happy/$HAPPYVER/bin:$HOME/.cabal/bin:$PATH
106- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.local/bin:/opt/alex/$ALEXVER/bin:/opt/happy/$HAPPYVER/bin:$HOME/.cabal/bin:$PATH
@@ -146,7 +147,7 @@ install:
146 # Due to dependency on wai-logger (which depends on some packages here),
147 # Due to dependency on wai-logger (which depends on some packages here),
147 # we can't build just dependencies
148 # we can't build just dependencies
149− # cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
150+ # cabal install --only-dependencies --enable-tests --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
150 cabal install hspec-discover
151 cabal install hspec-discover
@@ -160,7 +161,7 @@ script:
160 stack --no-terminal $ARGS test --haddock --no-haddock-deps
161 stack --no-terminal $ARGS test --haddock --no-haddock-deps
163− cabal install --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
164+ cabal install --enable-tests --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
165 ORIGDIR=$(pwd)
166 ORIGDIR=$(pwd)
166 for dir in $PACKAGES
167 for dir in $PACKAGES