summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2017-11-28 22:47:25 +0000
committerIsis Lovecruft <isis@torproject.org>2017-11-28 23:02:07 +0000
commit57e2f21bd8966e1ce4f9da5e9f6e7dcbe1fe0c6c (patch)
tree0806eba9a6cddda3987adeea17e1c5079d8b1124 /.travis.yml
parentbb4993395c9ad41a7a6ce70319f0240a951f0e65 (diff)
downloadtor-57e2f21bd8966e1ce4f9da5e9f6e7dcbe1fe0c6c.tar.gz
tor-57e2f21bd8966e1ce4f9da5e9f6e7dcbe1fe0c6c.zip
ci: Add Travis CI builds for testing cargo offline-mode.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 8cc210827a..d3918875dd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -56,6 +56,7 @@ env:
- MAKEFLAGS="-j 2"
matrix:
- RUST_OPTIONS="--enable-rust --enable-cargo-online-mode"
+ - RUST_OPTIONS="--enable-rust" TOR_RUST_DEPENDENCIES=true
- RUST_OPTIONS=""
matrix:
@@ -87,6 +88,10 @@ install:
- if [[ "$RUST_OPTIONS" != "" ]]; then which cargo; fi
- if [[ "$RUST_OPTIONS" != "" ]]; then rustc --version; fi
- if [[ "$RUST_OPTIONS" != "" ]]; then cargo --version; fi
+ ## If we're testing rust builds in offline-mode, then set up our vendored dependencies
+ - if [[ "$RUST_OPTIONS" == "--enable-rust" ]]; then git submodule init ; fi
+ - if [[ "$RUST_OPTIONS" == "--enable-rust" ]]; then git submodule update; fi
+ - if [[ "$TOR_RUST_DEPENDENCIES" == "true" ]]; then export TOR_RUST_DEPENDENCIES=$PWD/src/ext/rust/crates; fi
script:
- ./autogen.sh