- - if [ -f configure.ac ]; then autoreconf -i; fi
- - cabal install hpc-coveralls --constraint=retry==0.6
- - if [ "1.18" = $CABALVER ];
- then
- cabal configure --enable-tests --enable-benchmarks -v2 --enable-library-coverage # -v2 provides useful information for debugging
- else
- cabal configure --enable-tests --enable-benchmarks -v2 --enable-coverage # -v2 provides useful information for debugging
- fi
- - cabal build # this builds all libraries and executables (including tests/benchmarks)
- - run-cabal-test test
- - cabal bench
- - cabal check
- - cabal sdist # tests that a source-distribution can be generated
-
-
-# Check that the resulting source distribution can be built & installed.
-# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
-# `cabal install --force-reinstalls dist/*-*.tar.gz`
- - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
- (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
+ - cabal install hpc-coveralls --constraint=retry==0.6
+ - if [ $CABALVER -eq "1.18" ];
+ then
+ cabal configure --enable-tests --enable-benchmarks -v2 --enable-library-coverage
+ else
+ cabal configure --enable-tests --enable-benchmarks -v2 --enable-coverage
+ fi
+ - cabal build # this builds all libraries and executables (including tests/benchmarks)
+ - run-cabal-test test
+ - cabal bench
+ - cabal check
+ - cabal sdist # tests that a source-distribution can be generated
+ # Check that the resulting source distribution can be built & installed.
+ # If there are no other `.tar.gz` files in `dist`, this can be even simpler:
+ # `cabal install --force-reinstalls dist/*-*.tar.gz`
+ - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
+ (cd dist && cabal install --force-reinstalls "$SRC_TGZ")