2018-05-29 01:35:06 -04:00
|
|
|
language: c++
|
2018-06-19 06:54:24 -04:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-05-29 03:09:49 -04:00
|
|
|
cache:
|
2018-05-29 05:08:11 -04:00
|
|
|
ccache: true
|
2018-05-29 03:09:49 -04:00
|
|
|
directories:
|
2018-07-26 20:15:55 -04:00
|
|
|
- $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/
|
2018-07-26 20:15:55 -04:00
|
|
|
# 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
|
2018-07-24 13:42:23 -04:00
|
|
|
- ccache -s
|
2018-07-26 20:15:55 -04:00
|
|
|
- ./tools/setup.py
|
2018-08-02 21:00:13 -04:00
|
|
|
# Travis hangs without -j2 argument to ninja.
|
|
|
|
- ./tools/build.py -j2
|
2018-05-14 03:06:09 -04:00
|
|
|
script:
|
2018-07-08 02:24:29 -04:00
|
|
|
- ./tools/lint.py
|
2018-07-26 20:15:55 -04:00
|
|
|
- ./tools/test.py $DENO_BUILD_PATH
|