@@ -48,7 +48,7 @@ commands:
48 command: |
48 command: |
49 apt-get install -y ghc-<< parameters.ghcversion >>
49 apt-get install -y ghc-<< parameters.ghcversion >>
51− name: build project
51+ name: build and test project
52 command: |
52 command: |
54 cabal v2-update
54 cabal v2-update
@@ -59,14 +59,14 @@ commands:
60 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
60 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
61 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
61 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
62− cabal v2-test -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}" 2>build.log
63 cat build.log
62 cat build.log
64 # fail if we had warnings in local build
63 # fail if we had warnings in local build
65 # this is to work around the fact that cabal v2 doesn't allow
64 # this is to work around the fact that cabal v2 doesn't allow
66 # us to use -Werror for just local build:
65 # us to use -Werror for just local build:
67 # https://github.com/haskell/cabal/issues/4247
66 # https://github.com/haskell/cabal/issues/4247
68 ! grep -q "warning:" build.log
67 ! grep -q "warning:" build.log
68+ cabal v2-test -w ghc-<< parameters.ghcversion >> -j2 --ghc-options="${GHC_OPTS}" all
69− cabal v2-haddock -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}"
69+ cabal v2-haddock -w ghc-<< parameters.ghcversion >> -j2 --ghc-options="${GHC_OPTS}" all
70 cabal check
70 cabal check