@@ -41,13 +41,15 @@ jobs:
41
41
- bash : |
42
42
cargo +nightly build -Zfeatures=dev_dep
43
43
SSL=false COMPRESS=false cargo test
44
- SSL=true COMPRESS=false cargo test
44
+ SSL=true COMPRESS=false cargo test --features native-tls-tls
45
45
SSL=false COMPRESS=true cargo test
46
- SSL=true COMPRESS=true cargo test
47
- SSL=true COMPRESS=false cargo test --no-default-features --features default-rustls
46
+ SSL=true COMPRESS=true cargo test --features rustls-tls,ring
48
47
48
+ SSL=true COMPRESS=false cargo check --no-default-features --features default-rustls
49
+ SSL=true COMPRESS=false cargo check --no-default-features --features default-rustls-ring
49
50
SSL=true COMPRESS=false cargo check --no-default-features --features minimal
50
51
SSL=true COMPRESS=false cargo check --no-default-features --features minimal-rust
52
+ SSL=true COMPRESS=false cargo check --no-default-features --features minimal,tracing
51
53
env:
52
54
RUST_BACKTRACE: 1
53
55
DATABASE_URL: mysql://root:[email protected] :3306/mysql
82
84
displayName: Install Rust (Windows)
83
85
- bash : |
84
86
SSL=false COMPRESS=false cargo test
85
- SSL=true COMPRESS=false cargo test
87
+ SSL=true COMPRESS=false cargo test --features native-tls-tls
86
88
SSL=false COMPRESS=true cargo test
87
- SSL=true COMPRESS=true cargo test
88
89
env:
89
90
RUST_BACKTRACE: 1
90
91
DATABASE_URL: mysql://root:[email protected] /mysql
96
97
strategy :
97
98
maxParallel : 10
98
99
matrix :
100
+ v91 :
101
+ DB_VERSION : " 9.1"
102
+ v90 :
103
+ DB_VERSION : " 9.0"
104
+ v84 :
105
+ DB_VERSION : " 8.4"
99
106
v80 :
100
107
DB_VERSION : " 8.0-debian"
101
108
v57 :
@@ -126,12 +133,19 @@ jobs:
126
133
docker exec container bash -l -c "apt-get --allow-unauthenticated -y update"
127
134
docker exec container bash -l -c "apt-get install -y curl clang libssl-dev pkg-config build-essential"
128
135
docker exec container bash -l -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable"
129
- displayName: Install Rust in docker
136
+ displayName: Install Rust in docker (Debian)
137
+ condition: or(eq(variables['DB_VERSION'], '5.6'), eq(variables['DB_VERSION'], '5.7-debian'), eq(variables['DB_VERSION'], '8.0-debian'))
138
+ - bash : |
139
+ docker exec container bash -l -c "microdnf install dnf"
140
+ docker exec container bash -l -c "dnf group install \"Development Tools\""
141
+ docker exec container bash -l -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable"
142
+ displayName: Install Rust in docker (RedHat)
143
+ condition: not(or(eq(variables['DB_VERSION'], '5.6'), eq(variables['DB_VERSION'], '5.7-debian'), eq(variables['DB_VERSION'], '8.0-debian')))
130
144
- bash : |
131
145
if [[ "5.6" != "$(DB_VERSION)" ]]; then SSL=true; else DATABASE_URL="mysql://root2:[email protected] /mysql?secure_auth=false"; fi
132
146
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL cargo test"
133
147
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL COMPRESS=true cargo test"
134
- docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=$SSL cargo test"
148
+ docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=$SSL cargo test --features native-tls-tls "
135
149
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=$SSL COMPRESS=true cargo test"
136
150
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=$SSL COMPRESS=true cargo test --no-default-features --features default-rustls"
137
151
env:
@@ -145,16 +159,16 @@ jobs:
145
159
strategy :
146
160
maxParallel : 10
147
161
matrix :
162
+ v1162 :
163
+ DB_VERSION : " 11.6.2"
164
+ v1152 :
165
+ DB_VERSION : " 11.5.2"
166
+ v1144 :
167
+ DB_VERSION : " 11.4.2"
148
168
v113 :
149
- DB_VERSION : " 11.3"
169
+ DB_VERSION : " 11.3.2 "
150
170
v1011 :
151
- DB_VERSION : " 10.11"
152
- v106 :
153
- DB_VERSION : " 10.6"
154
- v105 :
155
- DB_VERSION : " 10.5"
156
- v104 :
157
- DB_VERSION : " 10.4"
171
+ DB_VERSION : " 10.11.10"
158
172
steps :
159
173
- bash : |
160
174
sudo apt-get update
@@ -194,7 +208,7 @@ jobs:
194
208
- bash : |
195
209
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL cargo test"
196
210
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL COMPRESS=true cargo test"
197
- docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=true cargo test"
211
+ docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=true cargo test --features native-tls-tls "
198
212
docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=true COMPRESS=true cargo test"
199
213
if [[ "10.1" != "$(DB_VERSION)" ]]; then docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=true cargo test --no-default-features --features default-rustls"; fi
200
214
env:
@@ -207,10 +221,14 @@ jobs:
207
221
vmImage : " ubuntu-latest"
208
222
strategy :
209
223
matrix :
210
- v5.3.0 :
211
- DB_VERSION : " v5.3.0"
212
- v5.0.6 :
213
- DB_VERSION : " v5.0.6"
224
+ v8.5.0 :
225
+ DB_VERSION : " v8.5.0"
226
+ v7.6.0 :
227
+ DB_VERSION : " v7.6.0"
228
+ v6.6.0 :
229
+ DB_VERSION : " v6.6.0"
230
+ v5.4.3 :
231
+ DB_VERSION : " v5.4.3"
214
232
steps :
215
233
- bash : |
216
234
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
0 commit comments