From e0674cd57fb5cbd92422fd66dae773f2014adb4f Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Thu, 19 Dec 2019 12:06:06 -0800 Subject: [PATCH] Make pre-push run on rust stable. --- hooks/pre-push | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hooks/pre-push b/hooks/pre-push index 2958894..9b62c71 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -89,12 +89,12 @@ if [ "$?" == 0 ]; then exit 1 fi - try_run "Building ... " cargo build --color=always - try_run "Testing ... " cargo test --color=always - try_run "Testing with all features enabled ... " cargo test --all-features --color=always - for EXAMPLE in $(cargo run --example 2>&1 | grep ' ' | awk '{print $1}') + try_run "Building ... " cargo +stable build --color=always + try_run "Testing ... " cargo +stable test --color=always + try_run "Testing with all features enabled ... " cargo +stable test --all-features --color=always + for EXAMPLE in $(cargo +stable run --example 2>&1 | grep ' ' | awk '{print $1}') do - try_run "Running example \"$EXAMPLE\" ... " cargo run --example $EXAMPLE + try_run "Running example \"$EXAMPLE\" ... " cargo +stable run --example $EXAMPLE done fi