on master help sign in
Make doctest build faster (no optimization)
commitf6575228c444501da337a559c5276a2029be0e4a authorHarendra Kumar <harendra@composewell.com> dateFri 19 Aug 2022, 15:23 (4 years ago) parent5c5e7fe
2 files changed+7−1
.github/workflows/haskell.yml+1−1 cabal.project.doctest+6
.github/workflows/haskell.yml+1−1
@@ -207,7 +207,7 @@ jobs:
207207 rm -f cabal-docspec.xz
208208 chmod a+x $HOME/.cabal/bin/cabal-docspec
209209 cabal update
210− cabal build all
210+ cabal build --project-file cabal.project.doctest all
211211 $HOME/.cabal/bin/cabal-docspec --version
212212 $HOME/.cabal/bin/cabal-docspec --timeout 60 --check-properties --property-variables xs
213213 elif test -z "$COVERAGE"
cabal.project.doctest+6
@@ -1,6 +1,8 @@
11packages: streamly.cabal
22 , core/streamly-core.cabal
33 , docs/streamly-docs.cabal
4+ -- for QuickCheck in property doctests
5+ , test/streamly-tests.cabal
46
57-- Keep the flags same as cabal.project.O0 because we utilize the same build
68-- for doctest in CI.
@@ -16,3 +18,7 @@ package streamly-core
1618package streamly-docs
1719 flags: -opt
1820 ghc-options: -O0 -Werror
21+
22+package streamly-tests
23+ flags: -opt
24+ ghc-options: -O0 -Werror