Fix live-unit-tests
This commit is contained in:
parent
c2bdf8e047
commit
381c3ec37f
2 changed files with 7 additions and 1 deletions
|
@ -34,6 +34,9 @@ common deps
|
||||||
, text
|
, text
|
||||||
, protolude
|
, protolude
|
||||||
|
|
||||||
|
flag ghci
|
||||||
|
default: False
|
||||||
|
manual: True
|
||||||
|
|
||||||
library
|
library
|
||||||
import: deps
|
import: deps
|
||||||
|
@ -56,6 +59,9 @@ executable arion
|
||||||
|
|
||||||
test-suite arion-unit-tests
|
test-suite arion-unit-tests
|
||||||
import: deps
|
import: deps
|
||||||
|
if flag(ghci)
|
||||||
|
hs-source-dirs: src/haskell/lib
|
||||||
|
ghc-options: -Wno-missing-home-modules
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: TestMain.hs
|
main-is: TestMain.hs
|
||||||
-- other-modules:
|
-- other-modules:
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -eux -o pipefail
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
ghcid \
|
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 \
|
--test=Main.main \
|
||||||
--reload=src/haskell \
|
--reload=src/haskell \
|
||||||
--restart=hercules-ci-api.cabal \
|
--restart=hercules-ci-api.cabal \
|
||||||
|
|
Loading…
Reference in a new issue