blob: 6c3703fbf6202f11d26c9aefee54c7dcac959646 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# This script takes care of testing your crate
set -ex
main() {
local features="--features reqwest/native-tls-vendored"
if [[ $TARGET =~ .*-freebsd ]]; then
features="--features reqwest/rustls-tls"
fi
cross build $features --target $TARGET
cross build $features --target $TARGET --release
if [ ! -z $DISABLE_TESTS ]; then
return
fi
cross test $features --target $TARGET
}
# we don't run the "test phase" when doing deploys
if [ -z $TRAVIS_TAG ]; then
main
fi
|