Skip to content

Commit 1da75f0

Browse files
committed
Try disabling tests on 7.10.3 (takes too long to build)
1 parent f692336 commit 1da75f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ matrix:
2525
- env: CABALVER=1.18 GHCVER=7.8.4
2626
compiler: ": #GHC 7.8.4"
2727
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'
2929
compiler: ": #GHC 7.10.3"
3030
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3], sources: [hvr-ghc]}}
3131
- env: CABALVER=1.24 GHCVER=8.0.1
@@ -52,7 +52,7 @@ install:
5252
fi
5353
- travis_retry cabal update -v
5454
- 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
5656
- sed -i -e '1,/^Resolving /d' installplan.txt; cat installplan.txt
5757

5858
# check whether current requested install-plan matches cached package-db snapshot
@@ -84,7 +84,7 @@ script:
8484
- if [ -f configure.ac ]; then autoreconf -i; fi
8585
- cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
8686
- cabal build # this builds all libraries and executables (including tests/benchmarks)
87-
- cabal test
87+
- if [ "$TESTS" = '--disable-tests' ]; then cabal test; fi
8888
# - cabal check
8989
- cabal sdist # tests that a source-distribution can be generated
9090

0 commit comments

Comments
 (0)