disable doctests conditionally
This commit is contained in:
+16
-8
@@ -13,6 +13,11 @@ build-type: Simple
|
||||
-- extra-doc-files: CHANGELOG.md
|
||||
-- extra-source-files:
|
||||
|
||||
flag doctest
|
||||
description: enable the doctest suite
|
||||
default: True
|
||||
manual: True
|
||||
|
||||
common ghcstuffs-dev
|
||||
ghc-options:
|
||||
-Wno-unused-matches -Wno-missing-signatures -Wno-typed-holes
|
||||
@@ -156,11 +161,14 @@ test-suite test
|
||||
default-language: GHC2024
|
||||
|
||||
-- https://github.com/martijnbastiaan/doctest-parallel/pull/66
|
||||
-- test-suite doctest
|
||||
-- import: ghcstuffs, ghcstuffs-dev
|
||||
-- type: exitcode-stdio-1.0
|
||||
-- hs-source-dirs: test
|
||||
-- main-is: doctest.hs
|
||||
-- build-depends:
|
||||
-- , base
|
||||
-- , doctest-parallel >=0.1
|
||||
test-suite doctest
|
||||
import: ghcstuffs, ghcstuffs-dev
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: test
|
||||
build-depends: base
|
||||
default-extensions: CPP
|
||||
main-is: doctest.hs
|
||||
if flag(doctest)
|
||||
build-depends: doctest-parallel >=0.1
|
||||
else
|
||||
cpp-options: "-DGYEHOEK_NO_DOCTEST"
|
||||
|
||||
Reference in New Issue
Block a user