From 198e396eadad704e96c9f37e24effc89a904f570 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Oct 2018 11:11:10 -0700 Subject: Support cargo check (#1128) - Based on code from @qti3e and @piscisaureus in #724 and #1125 respectively. - TODO The DENO_BUILD_PATH env var must be supplied and must be an absolute path, this restriction should be removed in future work. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index ff4e0c211..5d494adcb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ env: - HOMEBREW_PATH=$HOME/homebrew/ - DENO_BUILD_ARGS="use_custom_libcxx=false use_sysroot=false" - DENO_BUILD_PATH=$HOME/out/Default + - CARGO_TARGET_DIR=$DENO_BUILD_PATH - DENO_BUILD_MODE=release - PATH=$TRAVIS_BUILD_DIR/third_party/llvm-build/Release+Asserts/bin:$CARGO_HOME/bin:$PATH - CCACHE_CPP2=yes @@ -88,8 +89,9 @@ before_script: script: - ./tools/lint.py - ./tools/test_format.py -- bash -c "sleep 2100; pkill ninja" & +- bash -c "sleep 2100; pkill ninja; pkill cargo" & - ./tools/build.py -j2 +- RUSTC_WRAPPER=sccache cargo check -j2 --release - ./tools/test.py $DENO_BUILD_PATH after_script: - ccache --show-stats -- cgit v1.2.3