Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
547066b2
Unverified
Commit
547066b2
authored
6 years ago
by
Mikhail Glushenkov
Browse files
Options
Downloads
Patches
Plain Diff
Port Travis fixes from 2.4.
parent
77610986
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cabal.project.local.travis
+20
-0
20 additions, 0 deletions
cabal.project.local.travis
cabal.project.travis.libonly
+24
-0
24 additions, 0 deletions
cabal.project.travis.libonly
travis-script.sh
+5
-2
5 additions, 2 deletions
travis-script.sh
with
49 additions
and
2 deletions
cabal.project.local.travis
0 → 100644
+
20
−
0
View file @
547066b2
-- Force error messages to be better
-- Parallel new-build error messages are non-existent.
-- Turn off parallelization to get good errors.
jobs: 1
-- We vendor a copy of hackage-repo-tool so that we can
-- build it reliably. If we eventually get new-install
-- in the bootstrap, this can go away.
optional-packages: hackage-repo-tool-*/
-- hackage-repo-tool has upper bound on time
allow-newer: hackage-repo-tool:time
-- The -fno-warn-orphans is a hack to make Cabal-1.24
-- build properly (unfortunately the flags here get applied
-- to the dependencies too!)
package Cabal
ghc-options: -Werror -fno-warn-orphans
package cabal-install
ghc-options: -Werror
This diff is collapsed.
Click to expand it.
cabal.project.travis.libonly
0 → 100644
+
24
−
0
View file @
547066b2
-- A copy of cabal.project, but with a trimmed down 'packages'
-- field. Needed for LIB_ONLY configurations that can't build cabal-install,
-- only lib:Cabal.
packages: Cabal/ cabal-testsuite/
-- Uncomment to allow picking up extra local unpacked deps:
--optional-packages: */
program-options
-- So us hackers get all the assertion failures early:
--
-- NOTE: currently commented out, see
-- https://github.com/haskell/cabal/issues/3911
--
-- ghc-options: -fno-ignore-asserts
--
-- as a workaround we specify it for each package individually:
package Cabal
ghc-options: -fno-ignore-asserts
package cabal-testsuite
ghc-options: -fno-ignore-asserts
package cabal-install
ghc-options: -fno-ignore-asserts
This diff is collapsed.
Click to expand it.
travis-script.sh
+
5
−
2
View file @
547066b2
...
...
@@ -82,10 +82,13 @@ timed cabal update
# ---------------------------------------------------------------------
make cabal-install-monolithic
cp
cabal.project.travis cabal.project.local
if
[
"x
$CABAL_LIB_ONLY
"
=
"xYES"
]
;
then
cp
cabal.project.travis.libonly cabal.project
fi
cp
cabal.project.local.travis cabal.project.local
# hackage-repo-tool is a bit touchy to install on GHC 8.0, so instead we
# do it via new-build. See also cabal.project.travis. The downside of
# do it via new-build. See also cabal.project.
local.
travis. The downside of
# doing it this way is that the build product cannot be cached, but
# hackage-repo-tool is a relatively small package so it's good.
timed cabal unpack hackage-repo-tool-
${
HACKAGE_REPO_TOOL_VERSION
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment