@@ -25,7 +25,7 @@ matrix:
25
25
- env : CABALVER=1.18 GHCVER=7.8.4
26
26
compiler : " : #GHC 7.8.4"
27
27
addons : {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
28
- - env : CABALVER=1.22 GHCVER=7.10.3
28
+ - env : CABALVER=1.22 GHCVER=7.10.3 TESTS='--disable-tests'
29
29
compiler : " : #GHC 7.10.3"
30
30
addons : {apt: {packages: [cabal-install-1.22,ghc-7.10.3], sources: [hvr-ghc]}}
31
31
- env : CABALVER=1.24 GHCVER=8.0.1
@@ -52,7 +52,7 @@ install:
52
52
fi
53
53
- travis_retry cabal update -v
54
54
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
55
- - cabal install --only-dependencies --enable-tests --enable-benchmarks --dry -v > installplan.txt
55
+ - cabal install --only-dependencies --enable-tests $TESTS --enable-benchmarks --dry -v > installplan.txt
56
56
- sed -i -e '1,/^Resolving /d' installplan.txt; cat installplan.txt
57
57
58
58
# check whether current requested install-plan matches cached package-db snapshot
@@ -84,7 +84,7 @@ script:
84
84
- if [ -f configure.ac ]; then autoreconf -i; fi
85
85
- cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
86
86
- cabal build # this builds all libraries and executables (including tests/benchmarks)
87
- - cabal test
87
+ - if [ "$TESTS" = '--disable-tests' ]; then cabal test; fi
88
88
# - cabal check
89
89
- cabal sdist # tests that a source-distribution can be generated
90
90
0 commit comments