We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce2a7b0 commit 1e33455Copy full SHA for 1e33455
.travis.yml
@@ -7,6 +7,10 @@ os:
7
- osx
8
- windows
9
10
+cache:
11
+ directories:
12
+ - $HOME/.cargo/bin/
13
+
14
branches:
15
# Don't build these branches
16
except:
setup-toolchain.sh
@@ -3,8 +3,15 @@
3
4
cd "$(dirname "$0")"
5
6
+cratesio_version=$(cargo search rustup-toolchain-install-master | grep -o "[0-9]\.[0-9]\.[0-9]")
+rtim_version=$(rustup-toolchain-install-master --version | grep -o "[0-9]\.[0-9]\.[0-9]")
if ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install rustup-toolchain-install-master --debug
+else
+ if [ $rtim_version != $cratesio_version ]; then
+ cargo install rustup-toolchain-install-master --debug --force
+ fi
fi
17
RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
0 commit comments