From 735b0d05d36e099effa8e44af0633b70ab2e59dd Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Thu, 27 Aug 2020 01:00:51 +0200 Subject: [PATCH] Travis: Automatically test ALL debug code This avoids silly problems like broken debug code. When debugging, I don't first want to have to debug the debug code! :P With all debug options enabled, `test-js` outputs 858081 lines. This is too much for Travis, so we need to throw the debug output away on Travis. Note that this still preserves information like *which* test failed, as well as the precise error message. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fc11dda354..9eb469529b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,11 +47,11 @@ script: - cd "$SERENITY_ROOT" - mkdir -p Build - cd Build -- cmake .. -DBUILD_LAGOM=1 +- cmake .. -DBUILD_LAGOM=1 -DALL_THE_DEBUG_MACROS=1 - make -j2 - CTEST_OUTPUT_ON_FAILURE=1 make test - cd Meta/Lagom -- ./test-js +- DISABLE_DBG_OUTPUT=1 ./test-js # These feel like they should go into a script. However, that would be a Travis-specific script, and this is *the* right place for travis-specific stuff. - cd "$SERENITY_ROOT"/Toolchain/Cache - du -ch * || true