1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/.travis.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

language: c++
2018-06-19 06:54:24 -04:00
branches:
only:
- master
cache:
2018-05-29 05:08:11 -04:00
ccache: true
directories:
- $DENO_BUILD_PATH
2018-08-01 19:58:11 -04:00
- $CARGO_PATH
- $RUSTUP_PATH
2018-05-23 14:29:14 -04:00
env:
global:
2018-08-01 19:58:11 -04:00
- 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
2018-08-01 19:58:11 -04:00
before_install: |
# Install Rust.
2018-08-02 19:13:02 -04:00
# TODO(ry) Include rustc in third_party https://github.com/denoland/deno/issues/386
2018-08-01 19:58:11 -04:00
export PATH=$CARGO_PATH/bin:$PATH
rustc --version
if [ $? != 0 ]; then
curl -sSf https://sh.rustup.rs | sh -s -- -y
fi
2018-05-14 03:06:09 -04:00
install:
2018-06-19 06:54:24 -04:00
# 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
2018-05-14 03:06:09 -04:00
script:
- ./tools/lint.py
- ./tools/test.py $DENO_BUILD_PATH