2015-12-21 20:26:32 +00:00
|
|
|
#!/bin/sh
|
2016-07-12 07:34:27 +00:00
|
|
|
# Use rustup to locally run the same suite of tests as .travis.yml.
|
2015-12-21 20:26:32 +00:00
|
|
|
# (You should first install/update 1.0.0, beta, and nightly.)
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
for toolchain in 1.0.0 beta nightly; do
|
2016-07-12 07:34:27 +00:00
|
|
|
run="rustup run $toolchain"
|
2015-12-21 20:26:32 +00:00
|
|
|
$run cargo build --verbose
|
2016-07-12 07:34:27 +00:00
|
|
|
$run /usr/bin/env make test
|
|
|
|
$run $PWD/.travis/test_features.sh
|
2015-12-21 20:26:32 +00:00
|
|
|
if [ $toolchain = nightly ]; then
|
2016-07-12 07:34:27 +00:00
|
|
|
$run $PWD/.travis/test_nightly.sh
|
2015-12-21 20:26:32 +00:00
|
|
|
fi
|
|
|
|
$run cargo doc
|
|
|
|
done
|