git.iko.soy/typeable/bloodhound
on master help sign in
Add Validate flag to package

This is for #192. We will see how it works on travis

commitc3b68065588eac192a5af8cc50f55d7369de7ccb authorMichael Xavier <michael@michaelxavier.net> dateWed 12 Jul 2017, 15:57 (9 years ago) parent05a9094
2 files changed+9−2
.travis.yml+1−1 bloodhound.cabal+8−1
.travis.yml+1−1
@@ -36,7 +36,7 @@ script:
3636 - stack setup
3737 - stack update
3838 - stack build -j1
39− - stack test bloodhound:tests --test-arguments="--qc-max-success 500" --flag bloodhound:$ESFLAG
39+ - stack test bloodhound:tests --test-arguments="--qc-max-success 500" --flag bloodhound:$ESFLAG --flag bloodhound:Validate
4040
4141cache:
4242 directories:
bloodhound.cabal+8−1
@@ -20,6 +20,10 @@ source-repository head
2020 type: git
2121 location: https://github.com/bitemyapp/bloodhound.git
2222
23+flag Validate
24+ default: False
25+ manual: True
26+
2327Flag ES1
2428 Description: Run the test suite against an Elasticsearch 1.x server
2529 Default: True
@@ -30,6 +34,8 @@ Flag ES5
3034
3135library
3236 ghc-options: -Wall
37+ if flag(Validate)
38+ ghc-options: -Werror
3339 exposed-modules: Database.V1.Bloodhound
3440 Database.V1.Bloodhound.Client
3541 Database.V1.Bloodhound.Types
@@ -65,13 +71,14 @@ library
6571
6672test-suite tests
6773 ghc-options: -Wall -fno-warn-orphans
74+ if flag(Validate)
75+ ghc-options: -Werror
6876 type: exitcode-stdio-1.0
6977 main-is: tests.hs
7078 if flag(ES5)
7179 hs-source-dirs: tests/V5
7280 else
7381 hs-source-dirs: tests/V1
74−
7582 build-depends: base,
7683 bloodhound,
7784 bytestring,