@@ -48,7 +48,7 @@ commands:
4848 command: |
4949 apt-get install -y ghc-<< parameters.ghcversion >>
5050 - run:
51− name: build project
51+ name: build and test project
5252 command: |
5353 set -e
5454 cabal v2-update
@@ -59,14 +59,14 @@ commands:
5959 cd *
6060 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
6161 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
6362 cat build.log
6463 # fail if we had warnings in local build
6564 # this is to work around the fact that cabal v2 doesn't allow
6665 # us to use -Werror for just local build:
6766 # https://github.com/haskell/cabal/issues/4247
6867 ! grep -q "warning:" build.log
69− cabal v2-haddock -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}"
68+ cabal v2-test -w ghc-<< parameters.ghcversion >> -j2 --ghc-options="${GHC_OPTS}" all
69+ cabal v2-haddock -w ghc-<< parameters.ghcversion >> -j2 --ghc-options="${GHC_OPTS}" all
7070 cabal check
7171 - *save
7272