Skip to content

Commit

Permalink
Travis: cache ~/.cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 2, 2018
1 parent 7fe656f commit 193b396
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,28 @@ 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
# Help: How do you wrap long lines here?
- 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
Expand Down

0 comments on commit 193b396

Please sign in to comment.