diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-04-26 22:38:52 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-05-14 21:19:18 +0200 |
commit | bb46558401a50509936889d19de5144d0307e165 (patch) | |
tree | 24f1e559873162386caec268c52ce46c4bd4ac11 | |
parent | 0293f31cb8b96a9b705f7cbba3bd26b58f2e89e2 (diff) |
MiniCI configuration and cabal flag
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | erebos-tester.cabal | 24 | ||||
-rw-r--r-- | minici.yaml | 3 | ||||
-rw-r--r-- | src/Version.hs | 4 |
4 files changed, 30 insertions, 2 deletions
@@ -1,2 +1,3 @@ dist-newstyle/ .test +.minici 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 diff --git a/minici.yaml b/minici.yaml new file mode 100644 index 0000000..a3f87f5 --- /dev/null +++ b/minici.yaml @@ -0,0 +1,3 @@ +job build: + shell: + - cabal build -fci diff --git a/src/Version.hs b/src/Version.hs index ace016b..d09ed36 100644 --- a/src/Version.hs +++ b/src/Version.hs @@ -1,5 +1,9 @@ {-# LANGUAGE TemplateHaskell #-} +-- "Pattern match is redundant" warning can be generated based on template +-- haskell $$tGitVersion value +{-# OPTIONS_GHC -Wno-error=overlapping-patterns #-} + module Version ( versionLine, ) where |