File tree 4 files changed +15
-11
lines changed 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ matrix:
40
40
- env : GHCVER=7.10.3 SCRIPT=script
41
41
os : linux
42
42
sudo : required
43
- - env : GHCVER=8.0.1 SCRIPT=script DEPLOY_DOCS=YES
43
+ - env : GHCVER=8.0.1 SCRIPT=script DEPLOY_DOCS=YES TEST_OTHER_VERSIONS=YES
44
44
sudo : required
45
45
os : linux
46
46
- env : GHCVER=8.0.1 SCRIPT=solver-debug-flags
Original file line number Diff line number Diff line change @@ -42,8 +42,11 @@ tests config = do
42
42
-- Test that Cabal parses 'test' sections correctly
43
43
tc " TestStanza" PackageTests.TestStanza.Check. suite
44
44
45
- -- Test that Cabal parses '^>=' operator correctly
46
- tc " CaretOperator" PackageTests.CaretOperator.Check. suite
45
+ -- Test that Cabal parses '^>=' operator correctly.
46
+ -- Don't run this for GHC 7.0/7.2, which doesn't have a recent
47
+ -- enough version of pretty. (But this is pretty dumb.)
48
+ tc " CaretOperator" . whenGhcVersion (>= mkVersion [7 ,3 ])$
49
+ PackageTests.CaretOperator.Check. suite
47
50
48
51
-- Test that Cabal determinstically generates object archives
49
52
tc " DeterministicAr" PackageTests.DeterministicAr.Check. suite
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if [ -z ${STACKAGE_RESOLVER+x} ]; then
16
16
travis_retry sudo add-apt-repository -y ppa:hvr/ghc
17
17
travis_retry sudo apt-get update
18
18
travis_retry sudo apt-get install --force-yes cabal-install-1.24 happy-1.19.5 ghc-$GHCVER -prof ghc-$GHCVER -dyn
19
- if [ " $TEST_OLDER " == " YES " ]; then travis_retry sudo apt-get install --force-yes ghc-7.0.4-prof ghc-7.0.4-dyn ghc-7.2.2-prof ghc-7.2.2-dyn; fi
19
+ if [ " x $TEST_OTHER_VERSIONS " = " xYES " ]; then travis_retry sudo apt-get install --force-yes ghc-7.0.4-prof ghc-7.0.4-dyn ghc-7.2.2-prof ghc-7.2.2-dyn ghc-head-prof ghc-head -dyn; fi
20
20
21
21
elif [ " $TRAVIS_OS_NAME " = " osx" ]; then
22
22
Original file line number Diff line number Diff line change @@ -62,13 +62,14 @@ timed cabal new-build Cabal Cabal:package-tests Cabal:unit-tests
62
62
(cd Cabal && timed cabal act-as-setup --build-type=Simple -- haddock --builddir=${CABAL_BDIR} ) || exit $?
63
63
64
64
# Redo the package tests with different versions of GHC
65
- # TODO: reenable me
66
- # if [ "x$TEST_OLDER" = "xYES" -a "x$TRAVIS_OS_NAME" = "xlinux" ]; then
67
- # CABAL_PACKAGETESTS_WITH_GHC=/opt/ghc/7.0.4/bin/ghc \
68
- # ./dist/setup/setup test package-tests --show-details=streaming
69
- # CABAL_PACKAGETESTS_WITH_GHC=/opt/ghc/7.2.2/bin/ghc \
70
- # ./dist/setup/setup test package-tests --show-details=streaming
71
- # fi
65
+ if [ " x$TEST_OTHER_VERSIONS " = " xYES" ]; then
66
+ (export CABAL_PACKAGETESTS_WITH_GHC=" /opt/ghc/7.0.4/bin/ghc" ; \
67
+ cd Cabal && timed ${CABAL_BDIR} /build/package-tests/package-tests $TEST_OPTIONS )
68
+ (export CABAL_PACKAGETESTS_WITH_GHC=" /opt/ghc/7.2.2/bin/ghc" ; \
69
+ cd Cabal && timed ${CABAL_BDIR} /build/package-tests/package-tests $TEST_OPTIONS )
70
+ (export CABAL_PACKAGETESTS_WITH_GHC=" /opt/ghc/head/bin/ghc" ; \
71
+ cd Cabal && timed ${CABAL_BDIR} /build/package-tests/package-tests $TEST_OPTIONS )
72
+ fi
72
73
73
74
# Check for package warnings
74
75
(cd Cabal && timed cabal check) || exit $?
You can’t perform that action at this time.
0 commit comments