summaryrefslogtreecommitdiff
path: root/erebos-tester.cabal
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-04-26 22:38:52 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-05-14 21:19:18 +0200
commitbb46558401a50509936889d19de5144d0307e165 (patch)
tree24f1e559873162386caec268c52ce46c4bd4ac11 /erebos-tester.cabal
parent0293f31cb8b96a9b705f7cbba3bd26b58f2e89e2 (diff)
MiniCI configuration and cabal flag
Diffstat (limited to 'erebos-tester.cabal')
-rw-r--r--erebos-tester.cabal24
1 files changed, 22 insertions, 2 deletions
diff --git a/erebos-tester.cabal b/erebos-tester.cabal
index 133d088..3c9adef 100644
--- a/erebos-tester.cabal
+++ b/erebos-tester.cabal
@@ -20,12 +20,29 @@ category: Testing
extra-doc-files:
CHANGELOG.md
+flag ci
+ description: Options for CI testing
+ default: False
+ manual: True
+
source-repository head
type: git
location: git://erebosprotocol.net/tester
+common common
+ ghc-options:
+ -Wall
+ -fdefer-typed-holes
+
+ if flag(ci)
+ ghc-options:
+ -Werror
+ -- sometimes needed for backward/forward compatibility:
+ -Wno-error=unused-imports
+
executable erebos-tester
- ghc-options: -Wall
+ import: common
+
main-is: Wrapper.hs
-- other-modules:
-- other-extensions:
@@ -39,7 +56,10 @@ executable erebos-tester
default-language: Haskell2010
executable erebos-tester-core
- ghc-options: -Wall -threaded
+ import: common
+ ghc-options:
+ -threaded
+
main-is: Main.hs
other-modules: Config