graphql-engine/server/lib/upgrade-tests/upgrade-tests.cabal
Samir Talwar e16e70760a server/upgrade-tests: Avoid Docker host networking.
Instead, we update the metadata to point to the correct database URL each time we start HGE.

This means we can run the tests on macOS (and any other environment where Docker runs inside a VM).

I was hoping this would solve the issues we're seeing on CI too, but no such luck.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9528
GitOrigin-RevId: 32cbf65430462b4b0e59f5d644260f7c26c7135c
2023-06-13 22:30:26 +00:00

82 lines
1.7 KiB
Plaintext

cabal-version: 2.2
name: upgrade-tests
version: 1.0.0
build-type: Simple
copyright: Hasura Inc.
extra-source-files:
introspection.gql
common common-all
default-extensions:
BlockArguments
DataKinds
DeriveGeneric
DerivingStrategies
GeneralizedNewtypeDeriving
ImportQualifiedPost
LambdaCase
MultiWayIf
NamedFieldPuns
NoImplicitPrelude
NumericUnderscores
OverloadedStrings
PatternGuards
QuasiQuotes
RecordWildCards
ScopedTypeVariables
TypeApplications
TypeFamilies
ghc-options:
-Werror
-- Taken from https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
-Weverything
-Wno-missing-exported-signatures
-Wno-missing-import-lists
-Wno-missed-specialisations
-Wno-all-missed-specialisations
-Wno-unsafe
-Wno-safe
-Wno-missing-local-signatures
-Wno-monomorphism-restriction
-Wno-missing-kind-signatures
-Wno-missing-safe-haskell-mode
test-suite upgrade-tests
import: common-all
type: exitcode-stdio-1.0
hs-source-dirs: src
main-is: Main.hs
other-modules:
Hasura.UpgradeTests.Database
Hasura.UpgradeTests.Dataset
Hasura.UpgradeTests.Options
Hasura.UpgradeTests.Server
build-depends:
base
, graphql-engine
, pg-client
, test-harness
, aeson
, async
, bytestring
, file-embed
, hasura-base
, hasura-prelude
, hspec
, network
, optparse-applicative
, random
, testcontainers
, text
, vector
, zlib
-- Turning off optimizations is intentional; tests aren't
-- performance sensitive and waiting for compilation is a problem.
ghc-options:
-O0
-threaded
-rtsopts "-with-rtsopts=-N4"