Add a simple multirust script for local "CI"

This commit is contained in:
Josh Stone 2015-12-21 12:26:32 -08:00
parent 2e3e575117
commit ddc0b1ce0e
1 changed files with 16 additions and 0 deletions

16
.multirust.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# Use multirust to locally run the same suite of tests as .travis.yml.
# (You should first install/update 1.0.0, beta, and nightly.)
set -ex
for toolchain in 1.0.0 beta nightly; do
run="multirust run $toolchain"
$run cargo build --verbose
$run cargo test --verbose
$run .travis/test_features.sh
if [ $toolchain = nightly ]; then
$run .travis/test_nightly.sh
fi
$run cargo doc
done