graphql-engine/cabal/ci-haddock.project.local
Tom Harding f05f746b94 Extract the test harness from the Hspec tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6095
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 51693f7324e62e201a2bdc701255cf6c730745e2
2022-10-04 08:31:26 +00:00

47 lines
1.3 KiB
Plaintext

-- This configuration is just for building haddocks in CI. `cabal haddock` requires
-- the project to be built. We can do that at the end of the build job, but that
-- adds ~7min wall clock time to CI, since haddock is extremely slow.
-- Instead we make this a parallel job, but use a configuration with optimizations
-- off so the haskell build will be relatively fast.
-- NOTE!: we want to make sure this matches `ci.project.local`, so we can re-use the
-- cached library dependencies and don't accidentally rebuild:
package *
ghc-options:
-j2
+RTS -M15000m -RTS
+RTS -A64m -n2m -RTS
-- Disable optimizations
flags: -optimize-hasura
package graphql-engine
ghc-options:
-- At this point though we definitely want full module-level parallelism:
-j
-Werror
-- For speed; see `cabal.project.dev-sh.local`:
executable-dynamic: True
library-vanilla: False
package test-harness
ghc-options: -Werror -j
executable-dynamic: True
library-vanilla: False
package api-tests
ghc-options: -Werror -j
executable-dynamic: True
library-vanilla: False
-- %%%-BEGIN-PRO-ONLY-CONTENT-%%%
package graphql-engine-pro
ghc-options:
-- At this point though we definitely want full module-level parallelism:
-j
-Werror
-- For speed; see `cabal.project.dev-sh.local`:
executable-dynamic: True
library-vanilla: False