blob: 85ebfa66c3a193fbb3eecd5c52fb9799c6221ace (
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
25
|
# This script takes care of testing your crate
set -ex
main() {
local features="--features reqwest/native-tls-vendored"
if [[ $TARGET =~ .*-freebsd ]]; then
# N.B. still broken
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
|