on master help sign in
Make doctest build faster (no optimization)
f657522Harendra Kumar
.github/workflows/haskell.yml+1−1
@@ -207,7 +207,7 @@ jobs:
207 rm -f cabal-docspec.xz
207 rm -f cabal-docspec.xz
208 chmod a+x $HOME/.cabal/bin/cabal-docspec
208 chmod a+x $HOME/.cabal/bin/cabal-docspec
209 cabal update
209 cabal update
210− cabal build all
210+ cabal build --project-file cabal.project.doctest all
211 $HOME/.cabal/bin/cabal-docspec --version
211 $HOME/.cabal/bin/cabal-docspec --version
212 $HOME/.cabal/bin/cabal-docspec --timeout 60 --check-properties --property-variables xs
212 $HOME/.cabal/bin/cabal-docspec --timeout 60 --check-properties --property-variables xs
213 elif test -z "$COVERAGE"
213 elif test -z "$COVERAGE"
cabal.project.doctest+6
@@ -1,6 +1,8 @@
1packages: streamly.cabal
1packages: streamly.cabal
2 , core/streamly-core.cabal
2 , core/streamly-core.cabal
3 , docs/streamly-docs.cabal
3 , docs/streamly-docs.cabal
4+ -- for QuickCheck in property doctests
5+ , test/streamly-tests.cabal
4
6
5-- Keep the flags same as cabal.project.O0 because we utilize the same build
7-- Keep the flags same as cabal.project.O0 because we utilize the same build
6-- for doctest in CI.
8-- for doctest in CI.
@@ -16,3 +18,7 @@ package streamly-core
16package streamly-docs
18package streamly-docs
17 flags: -opt
19 flags: -opt
18 ghc-options: -O0 -Werror
20 ghc-options: -O0 -Werror
21+
22+package streamly-tests
23+ flags: -opt
24+ ghc-options: -O0 -Werror