Skip to content

Commit f770637

Browse files
committed
Try to fix Travis.
1 parent 8b7e60a commit f770637

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

cabal.project

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ constraints: unix >= 2.7.1.0
44
-- Uncomment to allow picking up extra local unpacked deps:
55
--optional-packages: */
66

7-
-- Remove after hackage-repo-tool release
8-
allow-newer:
9-
hackage-repo-tool:optparse-applicative
10-
11-
allow-newer:
12-
hackage-security:Cabal
13-
147
program-options
158
-- So us hackers get all the assertion failures early:
169
--

cabal.project.travis renamed to cabal.project.local.travis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs: 1
77
-- build it reliably. If we eventually get new-install
88
-- in the bootstrap, this can go away.
99
optional-packages: hackage-repo-tool-*/
10-
-- hackage-repo-tool has upper bound on Cabal
11-
allow-newer: hackage-repo-tool:Cabal, hackage-repo-tool:time, hackage-repo-tool:directory
10+
-- hackage-repo-tool has upper bound on time
11+
allow-newer: hackage-repo-tool:time
1212

1313
-- The -fno-warn-orphans is a hack to make Cabal-1.24
1414
-- build properly (unfortunately the flags here get applied

cabal.project.travis.libonly

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
-- Force error messages to be better
2-
-- Parallel new-build error messages are non-existent.
3-
-- Turn off parallelization to get good errors.
4-
jobs: 1
1+
-- A copy of cabal.project, but with a trimmed down 'packages'
2+
-- field. Needed for LIB_ONLY configurations that can't build cabal-install,
3+
-- only lib:Cabal.
54

6-
-- Ignore cabal-install in the CABAL_LIB_ONLY configuration.
7-
packages: ./Cabal
5+
packages: Cabal/
6+
constraints: unix >= 2.7.1.0
87

9-
-- The -fno-warn-orphans is a hack to make Cabal-1.24
10-
-- build properly (unfortunately the flags here get applied
11-
-- to the dependencies too!)
8+
-- Uncomment to allow picking up extra local unpacked deps:
9+
--optional-packages: */
10+
11+
program-options
12+
-- So us hackers get all the assertion failures early:
13+
--
14+
-- NOTE: currently commented out, see
15+
-- https://github.com/haskell/cabal/issues/3911
16+
--
17+
-- ghc-options: -fno-ignore-asserts
18+
--
19+
-- as a workaround we specify it for each package individually:
1220
package Cabal
13-
ghc-options: -Werror -fno-warn-orphans
21+
ghc-options: -fno-ignore-asserts
22+
package cabal-testsuite
23+
ghc-options: -fno-ignore-asserts
24+
package cabal-install
25+
ghc-options: -fno-ignore-asserts

travis-script.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ timed cabal update
8383

8484
make cabal-install-monolithic
8585
if [ "x$CABAL_LIB_ONLY" = "xYES" ]; then
86-
cp cabal.project.travis.libonly cabal.project.local
87-
else
88-
cp cabal.project.travis cabal.project.local
86+
cp cabal.project.travis.libonly cabal.project
8987
fi
88+
cp cabal.project.local.travis cabal.project.local
9089

9190
# hackage-repo-tool is a bit touchy to install on GHC 8.0, so instead we
92-
# do it via new-build. See also cabal.project.travis. The downside of
91+
# do it via new-build. See also cabal.project.local.travis. The downside of
9392
# doing it this way is that the build product cannot be cached, but
9493
# hackage-repo-tool is a relatively small package so it's good.
9594
timed cabal unpack hackage-repo-tool-${HACKAGE_REPO_TOOL_VERSION}

0 commit comments

Comments
 (0)