From 381c3ec37f8cdf7d15d2201f00f55bbb83643833 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 29 Jul 2019 13:46:49 +0200 Subject: [PATCH] Fix live-unit-tests --- arion-compose.cabal | 6 ++++++ live-unit-tests | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arion-compose.cabal b/arion-compose.cabal index b0e56e8..1637b44 100644 --- a/arion-compose.cabal +++ b/arion-compose.cabal @@ -34,6 +34,9 @@ common deps , text , protolude +flag ghci + default: False + manual: True library import: deps @@ -56,6 +59,9 @@ executable arion test-suite arion-unit-tests import: deps + if flag(ghci) + hs-source-dirs: src/haskell/lib + ghc-options: -Wno-missing-home-modules type: exitcode-stdio-1.0 main-is: TestMain.hs -- other-modules: diff --git a/live-unit-tests b/live-unit-tests index 09e3af9..4f70f27 100755 --- a/live-unit-tests +++ b/live-unit-tests @@ -6,7 +6,7 @@ set -eux -o pipefail cd "$(dirname "${BASH_SOURCE[0]}")" ghcid \ - --command 'ghci -isrc/haskell/exe -isrc/haskell/lib -isrc/haskell/test src/haskell/test/TestMain.hs' \ + --command 'cabal v2-repl arion-compose:arion-unit-tests --flags ghci --write-ghc-environment-files=never' \ --test=Main.main \ --reload=src/haskell \ --restart=hercules-ci-api.cabal \