File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,21 @@ source-repository head
4646 type : git
4747 location : https://github.com/haskell-github-trust/dbmigrations
4848
49+ flag mysql
50+ description : Build the mysql executable (and tests) application
51+ manual : False
52+ default : False
53+
54+ flag postgresql
55+ description : Build the postgresql executable (and tests) application
56+ manual : False
57+ default : False
58+
59+ flag sqlite
60+ description : Build the sqlite executable (and tests)
61+ manual : False
62+ default : False
63+
4964library
5065 exposed-modules :
5166 Database.Schema.Migrations
@@ -154,6 +169,8 @@ executable dbm-sqlite
154169 ghc-options : -Wno-missing-kind-signatures
155170 if impl(ghc >= 8.10 )
156171 ghc-options : -Wno-missing-safe-haskell-mode
172+ if !(flag(sqlite))
173+ buildable : False
157174
158175test-suite spec
159176 type : exitcode-stdio-1.0
@@ -261,3 +278,5 @@ test-suite sqlite-spec
261278 ghc-options : -Wno-missing-kind-signatures
262279 if impl(ghc >= 8.10 )
263280 ghc-options : -Wno-missing-safe-haskell-mode
281+ if !(flag(sqlite))
282+ buildable : False
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ executables:
9898 dependencies :
9999 - HDBC-sqlite3
100100 - dbmigrations
101+ when :
102+ - condition : ! " !(flag(sqlite))"
103+ buildable : false
101104
102105tests :
103106 spec :
@@ -126,3 +129,22 @@ tests:
126129 - HDBC-sqlite3
127130 - dbmigrations
128131 - hspec
132+ when :
133+ - condition : ! " !(flag(sqlite))"
134+ buildable : false
135+
136+ flags :
137+ sqlite :
138+ description : Build the sqlite executable (and tests)
139+ manual : false
140+ default : false
141+
142+ mysql :
143+ description : Build the mysql executable (and tests) application
144+ manual : false
145+ default : false
146+
147+ postgresql :
148+ description : Build the postgresql executable (and tests) application
149+ manual : false
150+ default : false
You can’t perform that action at this time.
0 commit comments