mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Travis: Use cargo cache
Closes ticket 26952.
This commit is contained in:
parent
c9ad16ca2a
commit
3b1c74baa5
@ -2,6 +2,11 @@ language: c
|
||||
|
||||
cache:
|
||||
ccache: true
|
||||
## cargo: true
|
||||
directories:
|
||||
- $HOME/.cargo
|
||||
## where we point CARGO_TARGET_DIR in all our cargo invocations
|
||||
- $TRAVIS_BUILD_DIR/src/rust/target
|
||||
|
||||
compiler:
|
||||
- gcc
|
||||
@ -116,6 +121,8 @@ before_install:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
||||
## We might be upgrading some useless packages, but that's better than missing an upgrade
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade; fi
|
||||
## Create empty rust directories for non-Rust builds, so caching succeeds
|
||||
- if [[ "$RUST_OPTIONS" == "" ]]; then mkdir -p $HOME/.cargo $TRAVIS_BUILD_DIR/src/rust/target; fi
|
||||
|
||||
install:
|
||||
## If we're on OSX use brew to install ccache (ccache is automatically installed on Linux)
|
||||
|
3
changes/ticket26952-cargo
Normal file
3
changes/ticket26952-cargo
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor features (continuous integration, rust):
|
||||
- Use cargo cache in our Travis CI configuration.
|
||||
Closes ticket 26952.
|
Loading…
Reference in New Issue
Block a user