summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2017-07-24 20:25:25 +0000
committerIsis Lovecruft <isis@torproject.org>2017-07-25 00:57:55 +0000
commit1d42316f49098e5fd5613bfa39dd6e3b02e3bd61 (patch)
treebfca60b390bef3b66ad86befb7c8be3477e43c83 /.travis.yml
parentc84d394176c252f31c0d14ca62e7e0940a2202f8 (diff)
downloadtor-1d42316f49098e5fd5613bfa39dd6e3b02e3bd61.tar.gz
tor-1d42316f49098e5fd5613bfa39dd6e3b02e3bd61.zip
Only install Rust in CI if RUST_OPTIONS is set.
(cherry picked from commit e5dd07a4c64fd2a4132ab1f6dec64640a95da35e)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index c8b9382f57..09ee44b0b2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -68,7 +68,7 @@ before_install:
## If we're on OSX, homebrew usually needs to updated first
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
## Download rustup
- - curl -Ssf -o rustup.sh https://sh.rustup.rs
+ - if [[ "$RUST_OPTIONS" != "" ]]; then curl -Ssf -o rustup.sh https://sh.rustup.rs; fi
install:
## If we're on OSX use brew to install required dependencies (for Linux, see the "apt:" section above)
@@ -80,13 +80,13 @@ install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated libscrypt || brew upgrade libscrypt; }; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then { brew outdated zstd || brew upgrade zstd; }; fi
## Install the nightly channels of rustc and cargo and setup our toolchain environment
- - sh rustup.sh -y --default-toolchain nightly
- - source $HOME/.cargo/env
+ - if [[ "$RUST_OPTIONS" != "" ]]; then sh rustup.sh -y --default-toolchain nightly; fi
+ - if [[ "$RUST_OPTIONS" != "" ]]; then source $HOME/.cargo/env; fi
## Get some info about rustc and cargo
- - which rustc
- - which cargo
- - rustc --version
- - cargo --version
+ - if [[ "$RUST_OPTIONS" != "" ]]; then which rustc; fi
+ - if [[ "$RUST_OPTIONS" != "" ]]; then which cargo; fi
+ - if [[ "$RUST_OPTIONS" != "" ]]; then rustc --version; fi
+ - if [[ "$RUST_OPTIONS" != "" ]]; then cargo --version; fi
script:
- ./autogen.sh