Skip to content

Commit

Permalink
remove coverage from main cabal.project, add to dedicated file
Browse files Browse the repository at this point in the history
  • Loading branch information
emilypi authored and fgaz committed Jun 2, 2021
1 parent 7457d2f commit bd713cd
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 24 deletions.
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

0 comments on commit bd713cd

Please sign in to comment.