diff --git a/.travis.yml b/.travis.yml index 28556cc09f..e74e46e2d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,8 +56,9 @@ install: # Install Rust. # TODO(ry) Include rustc in third_party. # https://github.com/denoland/deno/issues/386 - if [ ! $(which rustc) ]; then + if [ ! $(rustc --version | grep 1.30.0) ]; then curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.30.0 + rustup default 1.30.0 fi rustc --version cargo --version