@@ -127,10 +127,10 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
127
127
# check
128
128
#
129
129
130
- for runtime in ["async-std" , "tokio" , "actix" ]:
131
- for tls in ["native-tls" , "rustls" ]:
130
+ for runtime in ["async-std" , "tokio" ]:
131
+ for tls in ["native-tls" , "rustls" , "none" ]:
132
132
run (
133
- f"cargo c --no-default-features --features all-databases,all-types,offline, macros,runtime-{ runtime } -{ tls } " ,
133
+ f"cargo c --no-default-features --features all-databases,_unstable- all-types,macros,runtime-{ runtime } ,tls -{ tls } " ,
134
134
comment = "check with async-std" ,
135
135
tag = f"check_{ runtime } _{ tls } "
136
136
)
@@ -139,10 +139,10 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
139
139
# unit test
140
140
#
141
141
142
- for runtime in ["async-std" , "tokio" , "actix" ]:
143
- for tls in ["native-tls" , "rustls" ]:
142
+ for runtime in ["async-std" , "tokio" ]:
143
+ for tls in ["native-tls" , "rustls" , "none" ]:
144
144
run (
145
- f"cargo test --no-default-features --manifest-path sqlx-core/Cargo.toml --features all-databases,all-types,runtime- { runtime } -{ tls } " ,
145
+ f"cargo test --no-default-features --manifest-path sqlx-core/Cargo.toml --features json,_rt- { runtime } ,_tls -{ tls } " ,
146
146
comment = "unit test core" ,
147
147
tag = f"unit_{ runtime } _{ tls } "
148
148
)
@@ -151,15 +151,15 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
151
151
# integration tests
152
152
#
153
153
154
- for runtime in ["async-std" , "tokio" , "actix" ]:
155
- for tls in ["native-tls" , "rustls" ]:
154
+ for runtime in ["async-std" , "tokio" ]:
155
+ for tls in ["native-tls" , "rustls" , "none" ]:
156
156
157
157
#
158
158
# sqlite
159
159
#
160
160
161
161
run (
162
- f"cargo test --no-default-features --features macros,offline, any,all-types,sqlite,runtime-{ runtime } -{ tls } " ,
162
+ f"cargo test --no-default-features --features macros,any,_unstable- all-types,sqlite,runtime-{ runtime } ,tls -{ tls } " ,
163
163
comment = f"test sqlite" ,
164
164
service = "sqlite" ,
165
165
tag = f"sqlite" if runtime == "async-std" else f"sqlite_{ runtime } " ,
@@ -171,87 +171,79 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
171
171
172
172
for version in ["14" , "13" , "12" , "11" , "10" ]:
173
173
run (
174
- f"cargo test --no-default-features --features macros,offline, any,all-types,postgres,runtime-{ runtime } -{ tls } " ,
174
+ f"cargo test --no-default-features --features macros,any,_unstable- all-types,postgres,runtime-{ runtime } ,tls -{ tls } " ,
175
175
comment = f"test postgres { version } " ,
176
176
service = f"postgres_{ version } " ,
177
177
tag = f"postgres_{ version } " if runtime == "async-std" else f"postgres_{ version } _{ runtime } " ,
178
178
)
179
179
180
- ## +ssl
181
- for version in ["14" , "13" , "12" , "11" , "10" ]:
182
- run (
183
- f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{ runtime } -{ tls } " ,
184
- comment = f"test postgres { version } ssl" ,
185
- database_url_args = "sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt" ,
186
- service = f"postgres_{ version } " ,
187
- tag = f"postgres_{ version } _ssl" if runtime == "async-std" else f"postgres_{ version } _ssl_{ runtime } " ,
188
- )
189
-
190
- ## +client-ssl
191
- for version in ["14_client_ssl" , "13_client_ssl" , "12_client_ssl" , "11_client_ssl" , "10_client_ssl" ]:
192
- run (
193
- f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{ runtime } -{ tls } " ,
194
- comment = f"test postgres { version } no-password" ,
195
- database_url_args = "sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt&sslkey=.%2Ftests%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt" ,
196
- service = f"postgres_{ version } " ,
197
- tag = f"postgres_{ version } _no_password" if runtime == "async-std" else f"postgres_{ version } _no_password_{ runtime } " ,
198
- )
180
+ if tls != "none" :
181
+ ## +ssl
182
+ for version in ["14" , "13" , "12" , "11" , "10" ]:
183
+ run (
184
+ f"cargo test --no-default-features --features macros,any,_unstable-all-types,postgres,runtime-{ runtime } ,tls-{ tls } " ,
185
+ comment = f"test postgres { version } ssl" ,
186
+ database_url_args = "sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt" ,
187
+ service = f"postgres_{ version } " ,
188
+ tag = f"postgres_{ version } _ssl" if runtime == "async-std" else f"postgres_{ version } _ssl_{ runtime } " ,
189
+ )
190
+
191
+ ## +client-ssl
192
+ for version in ["14_client_ssl" , "13_client_ssl" , "12_client_ssl" , "11_client_ssl" , "10_client_ssl" ]:
193
+ run (
194
+ f"cargo test --no-default-features --features macros,any,_unstable-all-types,postgres,runtime-{ runtime } ,tls-{ tls } " ,
195
+ comment = f"test postgres { version } no-password" ,
196
+ database_url_args = "sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt&sslkey=.%2Ftests%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt" ,
197
+ service = f"postgres_{ version } " ,
198
+ tag = f"postgres_{ version } _no_password" if runtime == "async-std" else f"postgres_{ version } _no_password_{ runtime } " ,
199
+ )
199
200
200
201
#
201
202
# mysql
202
203
#
203
204
204
205
for version in ["8" , "5_7" ]:
205
206
run (
206
- f"cargo test --no-default-features --features macros,offline, any,all-types,mysql,runtime-{ runtime } -{ tls } " ,
207
+ f"cargo test --no-default-features --features macros,any,_unstable- all-types,mysql,runtime-{ runtime } ,tls -{ tls } " ,
207
208
comment = f"test mysql { version } " ,
208
209
service = f"mysql_{ version } " ,
209
210
tag = f"mysql_{ version } " if runtime == "async-std" else f"mysql_{ version } _{ runtime } " ,
210
211
)
211
212
212
- ## +client-ssl
213
- for version in ["8_client_ssl" , "5_7_client_ssl" ]:
214
- run (
215
- f"cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-{ runtime } -{ tls } " ,
216
- comment = f"test mysql { version } no-password" ,
217
- database_url_args = "sslmode=verify_ca&ssl-ca=.%2Ftests%2Fcerts%2Fca.crt&ssl-key=.%2Ftests%2Fkeys%2Fclient.key&ssl-cert=.%2Ftests%2Fcerts%2Fclient.crt" ,
218
- service = f"mysql_{ version } " ,
219
- tag = f"mysql_{ version } _no_password" if runtime == "async-std" else f"mysql_{ version } _no_password_{ runtime } " ,
220
- )
213
+ if tls != "none" :
214
+ ## +client-ssl
215
+ for version in ["8_client_ssl" , "5_7_client_ssl" ]:
216
+ run (
217
+ f"cargo test --no-default-features --features macros,any,_unstable-all-types,mysql,runtime-{ runtime } ,tls-{ tls } " ,
218
+ comment = f"test mysql { version } no-password" ,
219
+ database_url_args = "sslmode=verify_ca&ssl-ca=.%2Ftests%2Fcerts%2Fca.crt&ssl-key=.%2Ftests%2Fkeys%2Fclient.key&ssl-cert=.%2Ftests%2Fcerts%2Fclient.crt" ,
220
+ service = f"mysql_{ version } " ,
221
+ tag = f"mysql_{ version } _no_password" if runtime == "async-std" else f"mysql_{ version } _no_password_{ runtime } " ,
222
+ )
221
223
222
224
#
223
225
# mariadb
224
226
#
225
227
226
228
for version in ["10_6" , "10_5" , "10_4" , "10_3" ]:
227
229
run (
228
- f"cargo test --no-default-features --features macros,offline, any,all-types,mysql,runtime-{ runtime } -{ tls } " ,
230
+ f"cargo test --no-default-features --features macros,any,_unstable- all-types,mysql,runtime-{ runtime } ,tls -{ tls } " ,
229
231
comment = f"test mariadb { version } " ,
230
232
service = f"mariadb_{ version } " ,
231
233
tag = f"mariadb_{ version } " if runtime == "async-std" else f"mariadb_{ version } _{ runtime } " ,
232
234
)
233
235
234
- ## +client-ssl
235
- for version in ["10_6_client_ssl" , "10_5_client_ssl" , "10_4_client_ssl" , "10_3_client_ssl" ]:
236
- run (
237
- f"cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-{ runtime } -{ tls } " ,
238
- comment = f"test mariadb { version } no-password" ,
239
- database_url_args = "sslmode=verify_ca&ssl-ca=.%2Ftests%2Fcerts%2Fca.crt&ssl-key=.%2Ftests%2Fkeys%2Fclient.key&ssl-cert=.%2Ftests%2Fcerts%2Fclient.crt" ,
240
- service = f"mariadb_{ version } " ,
241
- tag = f"mariadb_{ version } _no_password" if runtime == "async-std" else f"mariadb_{ version } _no_password_{ runtime } " ,
242
- )
236
+ if tls != "none" :
237
+ ## +client-ssl
238
+ for version in ["10_6_client_ssl" , "10_5_client_ssl" , "10_4_client_ssl" , "10_3_client_ssl" ]:
239
+ run (
240
+ f"cargo test --no-default-features --features macros,any,_unstable-all-types,mysql,runtime-{ runtime } ,tls-{ tls } " ,
241
+ comment = f"test mariadb { version } no-password" ,
242
+ database_url_args = "sslmode=verify_ca&ssl-ca=.%2Ftests%2Fcerts%2Fca.crt&ssl-key=.%2Ftests%2Fkeys%2Fclient.key&ssl-cert=.%2Ftests%2Fcerts%2Fclient.crt" ,
243
+ service = f"mariadb_{ version } " ,
244
+ tag = f"mariadb_{ version } _no_password" if runtime == "async-std" else f"mariadb_{ version } _no_password_{ runtime } " ,
245
+ )
243
246
244
- #
245
- # mssql
246
- #
247
-
248
- for version in ["2019" , "2017" ]:
249
- run (
250
- f"cargo test --no-default-features --features macros,offline,any,all-types,mssql,runtime-{ runtime } -{ tls } " ,
251
- comment = f"test mssql { version } " ,
252
- service = f"mssql_{ version } " ,
253
- tag = f"mssql_{ version } " if runtime == "async-std" else f"mssql_{ version } _{ runtime } " ,
254
- )
255
247
256
248
# TODO: Use [grcov] if available
257
249
# ~/.cargo/bin/grcov tests/.cache/target/debug -s sqlx-core/ -t html --llvm --branch -o ./target/debug/coverage
0 commit comments