Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove coverage from main cabal.project, add to dedicated file #7421

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -39,47 +39,23 @@ constraints: these -assoc
-- program-options
-- ghc-options: -fno-ignore-asserts
--
-- NOTE: for library coverage in multi-project builds,
-- see:
--
-- * https://github.com/haskell/cabal/issues/6440
-- * https://github.com/haskell/cabal/issues/5213#issuecomment-586517129
--
-- We must mask coverage for dependencies of `cabal-install` in
-- multiproject settings in order to generate coverage for
-- the `cabal-install` library
--
package Cabal
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package cabal-testsuite
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package Cabal-QuickCheck
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package Cabal-tree-diff
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package Cabal-described
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package cabal-install-solver
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package cabal-install
ghc-options: -fno-ignore-asserts
coverage: True
library-coverage: True
76 changes: 76 additions & 0 deletions cabal.project.coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
packages: Cabal/ cabal-testsuite/
packages: cabal-install/
packages: cabal-install-solver/
packages: solver-benchmarks/

tests: True

packages: Cabal-QuickCheck/
packages: Cabal-tree-diff/
packages: Cabal-described
packages: Cabal-tests/
packages: cabal-benchmarks/

packages: vendor/cabal-doctest-1.0.8

-- Uncomment to allow picking up extra local unpacked deps:
--optional-packages: */

-- Remove after hackage-repo-tool release
allow-newer:
hackage-repo-tool:optparse-applicative

allow-newer:
hackage-security:Cabal

-- https://github.com/haskell-hvr/windns/pull/2
allow-newer: windns-0.1.0.1:base

-- avoiding extra dependencies
constraints: rere -rere-cfg
constraints: these

-- NOTE: for library coverage in multi-project builds,
-- see:
--
-- * https://github.com/haskell/cabal/issues/6440
-- * https://github.com/haskell/cabal/issues/5213#issuecomment-586517129
--
-- We must mask coverage for dependencies of `cabal-install` in
-- multiproject settings in order to generate coverage for
-- the `cabal-install` library
--
package Cabal
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package cabal-testsuite
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package Cabal-QuickCheck
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package Cabal-tree-diff
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package Cabal-described
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package cabal-install-solver
ghc-options: -fno-ignore-asserts
coverage: False
library-coverage: False

package cabal-install
ghc-options: -fno-ignore-asserts
coverage: True
library-coverage: True