diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-30 16:37:39 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-30 15:07:13 -0800 |
commit | daa84646e13abc05c132df04875f32df242c2b05 (patch) | |
tree | fe9bf660323f1b061bfc63fd451172769a529df6 | |
parent | c5d8cf8eb6a6e84347b9379945f308f29a2fe5cb (diff) |
travis: test rust version before rustup
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 28556cc09..e74e46e2d 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 |