@@ -52,13 +52,14 @@ commands:
52 cd ${TMPDIR}
52 cd ${TMPDIR}
53 tar xvzf *.tar.gz
53 tar xvzf *.tar.gz
55− cabal v2-build -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}"
55+ cabal v2-build -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
56− cabal v2-test --ghc-options="${GHC_OPTS}" 2>build.log
56+ cabal v2-build -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
57− cat build.log
57+ # fail if we had warnings in local build
58− # fail if we had warnings; this is to work around the fact
58+ # this is to work around the fact that cabal v2 doesn't allow
59− # that cabal v2 doesn't allow us to use -Werror for just local build:
59+ # us to use -Werror for just local build:
60 # https://github.com/haskell/cabal/issues/4247
60 # https://github.com/haskell/cabal/issues/4247
61 ! grep -q "warning:" build.log
61 ! grep -q "warning:" build.log
62+ cabal v2-test --ghc-options="${GHC_OPTS}" 2>build.log
62 cabal v2-haddock --ghc-options="${GHC_OPTS}"
63 cabal v2-haddock --ghc-options="${GHC_OPTS}"
63 cabal check
64 cabal check