1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/.travis.yml
Ryan Dahl 376f4dfcbf travis: adjust cache
- cache sysroot and llvm-build so they don't have to be downloaded each time.
- Remove DENO_BUILD_PATH from cache. ccache does all the heavy lifting, no need
  to cache the build dir.
2018-08-07 10:08:19 -04:00

42 lines
1.3 KiB
YAML

language: c++
branches:
only:
- master
cache:
ccache: true
directories:
- $CARGO_PATH
- $RUSTUP_PATH
- third_party/v8/build/linux/debian_sid_amd64-sysroot/
- third_party/v8/third_party/llvm-build/
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/denoland/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:
# 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
- export CCACHE_SLOPPINESS=time_macros
- ccache -s
- ./tools/setup.py
# Travis hangs without -j2 argument to ninja.
- ./tools/build.py -j2
script:
- ./tools/lint.py
- ./tools/test.py $DENO_BUILD_PATH