git.iko.soy/typeable/bloodhound
on master help sign in
Add Validate flag to package
c3b6806Michael Xavier
.travis.yml+1−1
@@ -36,7 +36,7 @@ script:
36 - stack setup
36 - stack setup
37 - stack update
37 - stack update
38 - stack build -j1
38 - 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
40
40
41cache:
41cache:
42 directories:
42 directories:
bloodhound.cabal+8−1
@@ -20,6 +20,10 @@ source-repository head
20 type: git
20 type: git
21 location: https://github.com/bitemyapp/bloodhound.git
21 location: https://github.com/bitemyapp/bloodhound.git
22
22
23+flag Validate
24+ default: False
25+ manual: True
26+
23Flag ES1
27Flag ES1
24 Description: Run the test suite against an Elasticsearch 1.x server
28 Description: Run the test suite against an Elasticsearch 1.x server
25 Default: True
29 Default: True
@@ -30,6 +34,8 @@ Flag ES5
30
34
31library
35library
32 ghc-options: -Wall
36 ghc-options: -Wall
37+ if flag(Validate)
38+ ghc-options: -Werror
33 exposed-modules: Database.V1.Bloodhound
39 exposed-modules: Database.V1.Bloodhound
34 Database.V1.Bloodhound.Client
40 Database.V1.Bloodhound.Client
35 Database.V1.Bloodhound.Types
41 Database.V1.Bloodhound.Types
@@ -65,13 +71,14 @@ library
65
71
66test-suite tests
72test-suite tests
67 ghc-options: -Wall -fno-warn-orphans
73 ghc-options: -Wall -fno-warn-orphans
74+ if flag(Validate)
75+ ghc-options: -Werror
68 type: exitcode-stdio-1.0
76 type: exitcode-stdio-1.0
69 main-is: tests.hs
77 main-is: tests.hs
70 if flag(ES5)
78 if flag(ES5)
71 hs-source-dirs: tests/V5
79 hs-source-dirs: tests/V5
72 else
80 else
73 hs-source-dirs: tests/V1
81 hs-source-dirs: tests/V1
74−
75 build-depends: base,
82 build-depends: base,
76 bloodhound,
83 bloodhound,
77 bytestring,
84 bytestring,