Skip to content

Commit 52661a7

Browse files
committed
Merge pull request #3197 from hvr/pr/ghc8-travis
(Try to) add GHC 8.0.1 to the test-matrix
2 parents fc00e33 + b45ecc8 commit 52661a7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ env:
88
- GHCVER=7.6.3
99
- GHCVER=7.8.4
1010
- GHCVER=7.10.3
11+
- GHCVER=8.0.1
1112
# TODO add PARSEC_BUNDLED=YES when it's so
1213
- GHCVER=head
1314

1415
# Note: the distinction between `before_install` and `install` is not important.
1516
before_install:
1617
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
1718
- travis_retry sudo apt-get update
18-
- travis_retry sudo apt-get install cabal-install-1.22 ghc-$GHCVER-prof ghc-$GHCVER-dyn happy
19-
- export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH
19+
- travis_retry sudo apt-get install cabal-install-1.24 ghc-$GHCVER-prof ghc-$GHCVER-dyn happy
20+
- export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.24/bin:$PATH
2021
- git version
2122

2223
install:

Cabal/tests/PackageTests/Tests.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ tests config = do
115115
assertRegex "error should be in MyLibrary.hs" "^MyLibrary.hs:" r
116116
assertRegex
117117
"error should be \"Could not find module `Text\\.PrettyPrint\""
118-
"Could not find module.*Text\\.PrettyPrint" r
118+
"(Could not find module|Failed to load interface for).*Text\\.PrettyPrint" r
119119

120120
-- This is a control on TargetSpecificDeps1; it should
121121
-- succeed.
@@ -130,7 +130,7 @@ tests config = do
130130
assertRegex "error should be in lemon.hs" "^lemon.hs:" r
131131
assertRegex
132132
"error should be \"Could not find module `Text\\.PrettyPrint\""
133-
"Could not find module.*Text\\.PrettyPrint" r
133+
"(Could not find module|Failed to load interface for).*Text\\.PrettyPrint" r
134134

135135
-- Test that Paths module is generated and available for executables.
136136
tc "PathsModule/Executable" $ cabal_build []

Cabal/tests/UnitTests/Distribution/System.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Distribution.System
99
import Test.Tasty
1010
import Test.Tasty.QuickCheck
1111

12-
textRoundtrip :: (Arbitrary a, Show a, Eq a, Text a) => a -> Property
12+
textRoundtrip :: (Show a, Eq a, Text a) => a -> Property
1313
textRoundtrip x = simpleParse (display x) === Just x
1414

1515
tests :: [TestTree]
@@ -26,4 +26,4 @@ instance Arbitrary Arch where
2626
arbitrary = elements knownArches
2727

2828
instance Arbitrary Platform where
29-
arbitrary = liftM2 Platform arbitrary arbitrary
29+
arbitrary = liftM2 Platform arbitrary arbitrary

0 commit comments

Comments
 (0)