]> git.lizzy.rs Git - rust.git/blobdiff - setup-toolchain.sh
build: use clippy's debug build in integration test
[rust.git] / setup-toolchain.sh
index 5e34fb3756fde7c19ef07c04c4130c98f57fa601..aac18e3794647edbcb76dca2dac99f2e884d65de 100755 (executable)
@@ -1,15 +1,13 @@
 #!/bin/bash
 # Set up the appropriate rustc toolchain
 
-cd "$(dirname "$0")" || exit
-
-if ! command -v rustup-toolchain-install-master > /dev/null; then
-  cargo install \
-    --git https://github.com/lzutao/rustup-toolchain-install-master \
-    --rev c44dbf920b644000ac3ba01184cbb1a01bb91519 \
-    --bin rustup-toolchain-install-master \
-    --debug
+set -e
+
+cd "$(dirname "$0")"
+
+if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
+  cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
 fi
 
-rustup-toolchain-install-master -f -n master -c rustc-dev
+rustup-toolchain-install-master -f -n master
 rustup override set master