We were generating two whole sets of jobs, for --tests and --docs separately. But the default invocation of cargo runs both tests and doctests. We can save some resources and speed up our test runs by allowing cargo to do both in one invocation.
15 lines
406 B
Bash
Executable File
15 lines
406 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
export RUST_BACKTRACE=1
|
|
export RUSTFLAGS="-D dead_code -D unused-variables -D unused"
|
|
|
|
for tls in "" tls ; do
|
|
for feature in "" json charset cookies socks-proxy ; do
|
|
if ! cargo test --no-default-features --features "${tls} ${feature}" ; then
|
|
echo Command failed: cargo test \"${what}\" --no-default-features --features \"${tls} ${feature}\"
|
|
exit 1
|
|
fi
|
|
done
|
|
done
|