make Travis CI build Megaparsec with GHC 7.6.x

There are some problems with HPC in GHC 7.6.x, so we don't measure code
coverage.
This commit is contained in:
mrkkrp 2015-10-04 20:40:52 +06:00
parent 9e445f844b
commit 5f83b40631

View File

@ -1,6 +1,9 @@
language: c
env:
- CABALVER=1.16 GHCVER=7.6.1
- CABALVER=1.16 GHCVER=7.6.2
- CABALVER=1.16 GHCVER=7.6.3
- CABALVER=1.18 GHCVER=7.8.1
- CABALVER=1.18 GHCVER=7.8.2
- CABALVER=1.18 GHCVER=7.8.3
@ -27,7 +30,11 @@ install:
- cabal install --only-dependencies --enable-tests
script:
- if [[ $CABALVER = 1.18 ]] ; then cabal configure --enable-tests --enable-library-coverage -v2 ; else cabal configure --enable-tests --enable-coverage -v2 ; fi
- case "$CABALVER" in
"1.16") cabal configure --enable-tests -v2 ;;
"1.18") cabal configure --enable-tests --enable-library-coverage -v2 ;;
*) cabal configure --enable-tests --enable-coverage -v2 ;;
esac
- cabal build
- cabal test --show-details=always
--test-option=--threads=2