From ddc0b1ce0ec2af68c4939636166294d7046928bb Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 21 Dec 2015 12:26:32 -0800 Subject: [PATCH] Add a simple multirust script for local "CI" --- .multirust.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .multirust.sh diff --git a/.multirust.sh b/.multirust.sh new file mode 100755 index 0000000..06cfef2 --- /dev/null +++ b/.multirust.sh @@ -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