From 8dad8a1c1d5c93607f40f88b0dfd2af3a0f92c42 Mon Sep 17 00:00:00 2001 From: Julien Tanguy Date: Tue, 17 Nov 2015 00:43:37 +0100 Subject: Change enable-coverage flag for cabal 1.18 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e30975b..f67be03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -78,7 +78,12 @@ install: script: - if [ -f configure.ac ]; then autoreconf -i; fi - cabal install hpc-coveralls --constraint=retry==0.6 - - cabal configure --enable-tests --enable-benchmarks -v2 --enable-coverage # -v2 provides useful information for debugging + - 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 check -- cgit v1.2.3