Make doctest build faster (no optimization)

This commit is contained in:
Harendra Kumar 2022-08-19 15:23:03 +05:30 committed by Harendra Kumar
parent 5c5e7feada
commit f6575228c4
2 changed files with 7 additions and 1 deletions

View File

@ -207,7 +207,7 @@ jobs:
rm -f cabal-docspec.xz
chmod a+x $HOME/.cabal/bin/cabal-docspec
cabal update
cabal build all
cabal build --project-file cabal.project.doctest all
$HOME/.cabal/bin/cabal-docspec --version
$HOME/.cabal/bin/cabal-docspec --timeout 60 --check-properties --property-variables xs
elif test -z "$COVERAGE"

View File

@ -1,6 +1,8 @@
packages: streamly.cabal
, core/streamly-core.cabal
, docs/streamly-docs.cabal
-- for QuickCheck in property doctests
, test/streamly-tests.cabal
-- Keep the flags same as cabal.project.O0 because we utilize the same build
-- for doctest in CI.
@ -16,3 +18,7 @@ package streamly-core
package streamly-docs
flags: -opt
ghc-options: -O0 -Werror
package streamly-tests
flags: -opt
ghc-options: -O0 -Werror