1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/.travis.yml
2018-08-02 12:49:40 -04:00

40 lines
1.2 KiB
YAML

language: c++
branches:
only:
- master
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:
# 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
- ./tools/build.py
script:
- ./tools/lint.py
- ./tools/test.py $DENO_BUILD_PATH