@@ -41,13 +41,15 @@ jobs:
4141 - bash : |
4242 cargo +nightly build -Zfeatures=dev_dep
4343 SSL=false COMPRESS=false cargo test
44- SSL=true COMPRESS=false cargo test
44+ SSL=true COMPRESS=false cargo test --features native-tls-tls
4545 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
4847
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
4950 SSL=true COMPRESS=false cargo check --no-default-features --features minimal
5051 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
5153 env:
5254 RUST_BACKTRACE: 1
5355 DATABASE_URL: mysql://root:[email protected] :3306/mysql 8284 displayName: Install Rust (Windows)
8385 - bash : |
8486 SSL=false COMPRESS=false cargo test
85- SSL=true COMPRESS=false cargo test
87+ SSL=true COMPRESS=false cargo test --features native-tls-tls
8688 SSL=false COMPRESS=true cargo test
87- SSL=true COMPRESS=true cargo test
8889 env:
8990 RUST_BACKTRACE: 1
9091 DATABASE_URL: mysql://root:[email protected] /mysql 9697 strategy :
9798 maxParallel : 10
9899 matrix :
100+ v91 :
101+ DB_VERSION : " 9.1"
102+ v90 :
103+ DB_VERSION : " 9.0"
104+ v84 :
105+ DB_VERSION : " 8.4"
99106 v80 :
100107 DB_VERSION : " 8.0-debian"
101108 v57 :
@@ -126,12 +133,19 @@ jobs:
126133 docker exec container bash -l -c "apt-get --allow-unauthenticated -y update"
127134 docker exec container bash -l -c "apt-get install -y curl clang libssl-dev pkg-config build-essential"
128135 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')))
130144 - bash : |
131145 if [[ "5.6" != "$(DB_VERSION)" ]]; then SSL=true; else DATABASE_URL="mysql://root2:[email protected] /mysql?secure_auth=false"; fi 132146 docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL cargo test"
133147 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 "
135149 docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=$SSL COMPRESS=true cargo test"
136150 docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=$SSL COMPRESS=true cargo test --no-default-features --features default-rustls"
137151 env:
@@ -145,16 +159,16 @@ jobs:
145159 strategy :
146160 maxParallel : 10
147161 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"
148168 v113 :
149- DB_VERSION : " 11.3"
169+ DB_VERSION : " 11.3.2 "
150170 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"
158172 steps :
159173 - bash : |
160174 sudo apt-get update
@@ -194,7 +208,7 @@ jobs:
194208 - bash : |
195209 docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL cargo test"
196210 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 "
198212 docker exec container bash -l -c "cd \$HOME && DATABASE_URL=$DATABASE_URL SSL=true COMPRESS=true cargo test"
199213 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
200214 env:
@@ -207,10 +221,14 @@ jobs:
207221 vmImage : " ubuntu-latest"
208222 strategy :
209223 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"
214232 steps :
215233 - bash : |
216234 curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
0 commit comments