diff --git a/.gitattributes b/.gitattributes index cd4c83ed0f..90e666e57f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,3 +6,4 @@ /* symlink=dir /website/* symlink=dir /tools/clang symlink=dir +/tools/memory symlink=dir diff --git a/.travis.yml b/.travis.yml index e74e46e2d0..fc9f674b35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,7 @@ env: - RUST_BACKTRACE=1 - HOMEBREW_PATH=$HOME/homebrew/ - DENO_BUILD_ARGS="use_sysroot=false" - - DENO_BUILD_PATH=$HOME/out/Default - CARGO_TARGET_DIR=$HOME/target - - DENO_BUILD_MODE=release - PATH=$TRAVIS_BUILD_DIR/third_party/llvm-build/Release+Asserts/bin:$CARGO_HOME/bin:$PATH - CCACHE_CPP2=yes - CCACHE_SLOPPINESS=time_macros @@ -89,13 +87,30 @@ before_script: - ./tools/setup.py script: - |- - set -e + # Check lint and format. + set -e # Fail immediately if any of the following fail. ./tools/lint.py ./tools/test_format.py + +- |- + # LSAN build of test_cc. We are in the process of getting a + # completely clean LSAN build, but it will take some work. So for now + # we just run a single test that passes under LSAN. + echo is_asan=true >> target/debug/args.gn + echo is_lsan=true >> target/debug/args.gn + DENO_BUILD_MODE=debug ./tools/build.py -j2 test_cc + ASAN_OPTIONS=detect_leaks=1 ./target/debug/test_cc + +- |- + # Release build and test bash -c "sleep 2100; pkill ninja; pkill cargo" & - ./tools/build.py -j2 + DENO_BUILD_MODE=release ./tools/build.py -j2 + DENO_BUILD_MODE=release ./tools/test.py + +- |- + # Cargo check RUSTC_WRAPPER=sccache cargo check -j2 --release - ./tools/test.py $DENO_BUILD_PATH + after_script: - ccache --show-stats - sccache --stop-server @@ -103,16 +118,16 @@ after_success: - | # Run benchmarks and publish the result to github pages. if [ $BENCHMARK ]; then - ./tools/benchmark.py $DENO_BUILD_PATH && + ./tools/benchmark.py target/release && cp -r website/* gh-pages/ fi before_deploy: -- gzip -c $DENO_BUILD_PATH/deno > $DENO_BUILD_PATH/deno_${TRAVIS_OS_NAME}_x64.gz +- gzip -c target/release/deno > target/release/deno_${TRAVIS_OS_NAME}_x64.gz deploy: - provider: releases api_key: &github-token secure: RIwv515oDcPAlEvt7uG8FeSFi6Tz6ODJUOXcFj6FYUPszxJ7Cg1kBLKln+fNW5OeOc52VsaZb/vPZ85skyEM6zk2ijL9FcSnnfNEm548w77iH6G0sk09NgBTy6KRXES6NZHD9jN1YTWYkT2G1NQi7mLqxR8a8pnWTbeK5HhtSWGsZPtXqf5iQbvnWsmKA0/w+FIgKupU0xe/qsYjh0eMLYpZDUWoKO0VxBKJ/ix5Uz91aJTjMIcHHij+ALg4pk+FkDotdyx39XB9b25KDxGuaI7NxWjSPzDxs/ZBHP6QYDLO0ti93ftvLAxRoBKPFoZrXqAu3KG9anr9WvxE40DO9OdV0VX2ZUatMUQm3DpSheN8ml2sErFqjIInqlpkdOVDYORz7FikPxkb9DKt+iuyFfxPRa4YWJv2tg8+Hy/nRCQw69OoKqrSNJ8KJDB3OjYbRBtdHz79RLJhTsGZla6RiyXfM7crR7CbFjbwdbW3Pt60t24fhvXQ0SwR0QTgzS/ieYEQHq/9GtSQA/Tn4kdIkyN6BdOMrQd/aUtgKmNdqbSlfmWGNyNZIxHdB+3RrTNT1tagkRI4UHEUfEujpIdYKwLjv0Xmi/VtTM+zOSkzHsIWGPfHBmIGnXfAItUHqivQYJ15E+dzg3T1CEbBxkDQtvwien9Fa8/pBsMkyovl8ps= - file: "$DENO_BUILD_PATH/deno_${TRAVIS_OS_NAME}_x64.gz" + file: "target/release/deno_${TRAVIS_OS_NAME}_x64.gz" on: tags: true repo: denoland/deno diff --git a/tools/memory b/tools/memory new file mode 120000 index 0000000000..dbbe094b9d --- /dev/null +++ b/tools/memory @@ -0,0 +1 @@ +../third_party/v8/tools/memory/ \ No newline at end of file