diff options
author | teor <teor@torproject.org> | 2018-08-09 22:52:51 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2018-08-09 23:42:26 +1000 |
commit | e387eee362fc5c73b7b54c2e887d08816732a0ae (patch) | |
tree | 82aa38f1c27c6c57eab0af13c0165dba8fb1ec1d /.travis.yml | |
parent | 14ceee0fd1cc82da9fc6cd51d69173546bc4d7fd (diff) | |
download | tor-e387eee362fc5c73b7b54c2e887d08816732a0ae.tar.gz tor-e387eee362fc5c73b7b54c2e887d08816732a0ae.zip |
Travis: add rust cargo offline mode
Backports parts of the 0.3.3 travis config.
Part of 24629.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 43392b3f4b..8d300004aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,9 @@ matrix: # - env: HARDENING_OPTIONS="" ## We check asciidoc with distcheck, to make sure we remove doc products - env: ASCIIDOC_OPTIONS="" DISTCHECK="yes" + ## Check rust offline without distcheck (see above) + ## TOR_RUST_DEPENDENCIES is spelt RUST_DEPENDENCIES in 0.3.2 + - env: RUST_OPTIONS="--enable-rust" RUST_DEPENDENCIES=true HARDENING_OPTIONS="" ## Uncomment to allow the build to report success (with non-required ## sub-builds continuing to run) if all required sub-builds have @@ -140,6 +143,8 @@ install: ## Install the stable channels of rustc and cargo and setup our toolchain environment - if [[ "$RUST_OPTIONS" != "" ]]; then sh rustup.sh -y --default-toolchain stable; fi - if [[ "$RUST_OPTIONS" != "" ]]; then source $HOME/.cargo/env; fi + ## If we're testing rust builds in offline-mode, then set up our vendored dependencies + - if [[ "$RUST_DEPENDENCIES" == "true" ]]; then export RUST_DEPENDENCIES=$PWD/src/ext/rust/crates; fi ## ## Finally, list installed package versions - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then dpkg-query --show; fi |