diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-08-01 19:58:11 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-02 12:49:40 -0400 |
commit | 193b3965ca14341ccf1870a444e93c1ead18103b (patch) | |
tree | 4947f3626004cdf8dfbd5bc1d2f6257061342816 | |
parent | 7fe656f4b9ab594035f7c0b6c0c68ca41871daca (diff) |
Travis: cache ~/.cargo
-rw-r--r-- | .travis.yml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 8a04afd3b..1b85c522e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,12 @@ cache: ccache: true directories: - $DENO_BUILD_PATH + - $CARGO_PATH + - $RUSTUP_PATH env: global: + - CARGO_PATH=$HOME/.cargo/ + - RUSTUP_PATH=$HOME/.rustup/ # is_debug, use_allocator, and ccache are used to speed travis. # use_custom_libcxx=false and use_sysroot=false seem to be required to build on # Ubuntu 14.04 @@ -15,14 +19,15 @@ env: - DENO_BUILD_ARGS="is_debug=false use_allocator=\"none\" use_custom_libcxx=false use_sysroot=false" - DENO_BUILD_PATH=$HOME/out/Default - DENO_BUILD_MODE=debug +before_install: | + # Install Rust. + # TODO(ry) Include rustc in third_party https://github.com/ry/deno/issues/386 + export PATH=$CARGO_PATH/bin:$PATH + rustc --version + if [ $? != 0 ]; then + curl -sSf https://sh.rustup.rs | sh -s -- -y + fi install: - # Sync dependencies. - # TODO(ry) These sync steps are very terrible and only here temporarily. - # rustc should be added to deno_third_party. Ultimately Deno *should not* - # depend on yarn, gclient, rustup, cargo, nor any internet connection. - - curl -sSf https://sh.rustup.rs | sh -s -- -y - - export PATH=$HOME/.cargo/bin:$PATH - - rustc --version # ccache needs the custom LLVM to be in PATH and other variables. - export PATH=`pwd`/third_party/llvm-build/Release+Asserts/bin:$PATH - export CCACHE_CPP2=yes |