]> git.proxmox.com Git - cargo.git/blob - vendor/curl/ci/run.sh
New upstream version 0.63.1
[cargo.git] / vendor / curl / ci / run.sh
1 #!/bin/sh
2
3 set -ex
4
5 cargo test --target $TARGET --no-run
6 # First test with no extra protocols enabled.
7 cargo test --target $TARGET --no-run --features static-curl
8 # Then with rustls TLS backend.
9 cargo test --target $TARGET --no-run --features rustls,static-curl
10 # Then with all extra protocols enabled.
11 cargo test --target $TARGET --no-run --features static-curl,protocol-ftp,ntlm
12 if [ -z "$NO_RUN" ]; then
13 cargo test --target $TARGET
14 cargo test --target $TARGET --features static-curl
15 cargo test --target $TARGET --features static-curl,protocol-ftp
16
17 # Note that `-Clink-dead-code` is passed here to suppress `--gc-sections` to
18 # help confirm that we're compiling everything necessary for curl itself.
19 RUSTFLAGS=-Clink-dead-code \
20 cargo run --manifest-path systest/Cargo.toml --target $TARGET
21 RUSTFLAGS=-Clink-dead-code \
22 cargo run --manifest-path systest/Cargo.toml --target $TARGET --features curl-sys/static-curl,curl-sys/protocol-ftp
23
24 cargo doc --no-deps --target $TARGET
25 cargo doc --no-deps -p curl-sys --target $TARGET
26 fi