-
Notifications
You must be signed in to change notification settings - Fork 0
/
persistent-test.cabal
207 lines (181 loc) · 6.59 KB
/
persistent-test.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
name: persistent-test
version: 2.0.0.3
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
maintainer: Michael Snoyman <michael@snoyman.com>
synopsis: Tests for Persistent
description: Tests for Persistent
category: Database, Yesod
stability: Stable
cabal-version: >= 1.10
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
extra-source-files:
test/main.hs
Flag sqlite
Description: use sqlite. This is just present for consistency, and is not used
Default: False
manual: True
Flag zookeeper
Description: test only Zookeeper. default is to test just sqlite.
Default: False
manual: True
Flag mongodb
Description: test only MongoDB. default is to test just sqlite.
Default: False
manual: True
Flag postgresql
Description: test postgresql. default is to test just sqlite.
Default: False
manual: True
Flag mysql
Description: test MySQL. default is to test just sqlite.
Default: False
manual: True
Flag high_precision_date
Description: for MongoDB use a time storage with nano second precision.
Default: False
manual: True
flag nooverlap
default: False
description: test out our assumption that OverlappingInstances is just for String
manual: True
library
exposed-modules: PersistentTest
PersistTestPetType
PersistTestPetCollarType
RenameTest
DataTypeTest
EmptyEntityTest
HtmlTest
EmbedTest
EmbedOrderTest
EntityEmbedTest
LargeNumberTest
UniqueTest
MaxLenTest
Recursive
SumTypeTest
MigrationOnlyTest
MigrationTest
MigrationIdempotencyTest
PersistUniqueTest
CompositeTest
Init
PrimaryTest
CustomPersistField
CustomPersistFieldTest
CustomPrimaryKeyReferenceTest
InsertDuplicateUpdate
MigrationColumnLengthTest
EquivalentTypeTest
hs-source-dirs: src, test
ghc-options: -Wall
if impl(ghc >= 7.8)
ghc-options: -Wall -j
build-depends: base >= 4.6 && < 5
, persistent
, persistent-template
, HUnit
, hspec >= 1.12.1
, hspec-expectations
, template-haskell
, aeson >= 0.7
, aeson-compat >= 0.3.2.0 && < 0.4
, lifted-base >= 0.1
, network
, path-pieces >= 0.1
, http-api-data >= 0.2
, text >= 0.8
, transformers >= 0.2.1
, monad-control >= 0.3
, containers >= 0.2
, bytestring >= 0.9
, base64-bytestring
, conduit >= 1.0
, resourcet >= 0.4
, exceptions >= 0.6
, time >= 1.1.4
, random >= 1.0
, QuickCheck >= 2.7
, blaze-html >= 0.5
, blaze-markup >= 0.5.1
, quickcheck-instances >= 0.3
, transformers-base
, attoparsec
, vector
, unordered-containers
, monad-logger >= 0.3
, hashable
-- actually just a mongoDB dependency
-- fixes build warning on current build server
, cereal
, silently
, blaze-builder
, mtl
, fast-logger
, semigroups
, scientific
, resource-pool
, exceptions
, tagged
, old-locale
if flag(nooverlap)
cpp-options: -DNO_OVERLAP
if !flag(postgresql) && !flag(mysql) && !flag(mongodb) && !flag(zookeeper)
build-depends: persistent-sqlite >= 2.6.1.1
cpp-options: -DWITH_SQLITE -DDEBUG
if flag(postgresql)
build-depends: persistent-postgresql
, postgresql-simple
, postgresql-libpq
cpp-options: -DWITH_POSTGRESQL -DDEBUG
if flag(mysql)
build-depends: persistent-mysql
, mysql-simple >= 0.4.3 && < 0.5
, mysql >= 0.1.1.3 && < 0.2
cpp-options: -DWITH_MYSQL
if flag(mongodb)
build-depends: persistent-mongoDB
, mongoDB >= 2.0.4 && < 3.0
, cereal
, bson >= 0.3.1
, process
cpp-options: -DWITH_NOSQL -DWITH_MONGODB -DDEBUG
if flag(zookeeper)
build-depends: persistent-zookeeper
, hzk >= 2.1.0
, binary
, utf8-string >= 0.3.7 && < 0.4.0
, process
cpp-options: -DWITH_NOSQL -DWITH_ZOOKEEPER -DDEBUG
if flag(high_precision_date)
cpp-options: -DHIGH_PRECISION_DATE
default-language: Haskell2010
executable persistent-test
main-is: main.hs
hs-source-dirs: test
default-language: Haskell2010
build-depends: base >= 4.6 && < 5
, persistent-test
, persistent
, hspec
, system-filepath
, system-fileio
, resourcet
, scientific
if !flag(postgresql) && !flag(mysql) && !flag(mongodb) && !flag(zookeeper)
cpp-options: -DWITH_SQLITE -DDEBUG
if flag(zookeeper)
cpp-options: -DWITH_NOSQL -DWITH_ZOOKEEPER -DDEBUG
if flag(mongodb)
cpp-options: -DWITH_NOSQL -DWITH_MONGODB -DDEBUG
if flag(postgresql)
cpp-options: -DWITH_POSTGRESQL
if flag(mysql)
cpp-options: -DWITH_MYSQL
source-repository head
type: git
location: git://github.com/yesodweb/persistent.git