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.
This commit is contained in:
Ben Wiederhake 2020-08-27 01:00:51 +02:00 committed by Andreas Kling
parent 86e2703123
commit 735b0d05d3
Notes: sideshowbarker 2024-07-19 03:02:03 +09:00

View file

@ -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