summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-03 19:57:34 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-12-03 19:34:01 -0800
commit0bec0fa594486876ff63d02e98ab454515e9c0d8 (patch)
treebe507f02396caf7f63d99a4ab0d42ff1fecc3ed6 /.travis.yml
parent9e839b7e2325e55147cc7e49ed9576cc000eaf63 (diff)
Remove leaks from snapshot_creator
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index fc9f674b3..29ead4aad 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -93,18 +93,20 @@ script:
./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.
+ # LSAN build. 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 subset of the tests.
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
+ # We want to detect leaks during the build process as well as when executing
+ # the tests. So set the ASAN_OPTIONS env var before build.py is run.
+ export ASAN_OPTIONS=detect_leaks=1
+ ./tools/build.py -C target/debug -j2
+ ./target/debug/test_cc
- |-
# Release build and test
bash -c "sleep 2100; pkill ninja; pkill cargo" &
- DENO_BUILD_MODE=release ./tools/build.py -j2
+ ./tools/build.py -C target/release -j2
DENO_BUILD_MODE=release ./tools/test.py
- |-