ci: Add Travis CI builds for testing cargo offline-mode.

This commit is contained in:
Isis Lovecruft 2017-11-28 22:47:25 +00:00
parent bb4993395c
commit 57e2f21bd8
No known key found for this signature in database
GPG Key ID: B8938BC5E86C046F

View File

@ -56,6 +56,7 @@ env:
- MAKEFLAGS="-j 2" - MAKEFLAGS="-j 2"
matrix: matrix:
- RUST_OPTIONS="--enable-rust --enable-cargo-online-mode" - RUST_OPTIONS="--enable-rust --enable-cargo-online-mode"
- RUST_OPTIONS="--enable-rust" TOR_RUST_DEPENDENCIES=true
- RUST_OPTIONS="" - RUST_OPTIONS=""
matrix: matrix:
@ -87,6 +88,10 @@ install:
- if [[ "$RUST_OPTIONS" != "" ]]; then which cargo; fi - if [[ "$RUST_OPTIONS" != "" ]]; then which cargo; fi
- if [[ "$RUST_OPTIONS" != "" ]]; then rustc --version; fi - if [[ "$RUST_OPTIONS" != "" ]]; then rustc --version; fi
- if [[ "$RUST_OPTIONS" != "" ]]; then cargo --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: script:
- ./autogen.sh - ./autogen.sh