travis: Parallelize non-valgrind tests even if under developer

Tests were timing out, and there is no point in artificially limiting
ourselves if we can be quicker.
This commit is contained in:
Christian Decker 2020-07-10 13:27:32 +02:00 committed by Rusty Russell
parent f20091fc72
commit 817f7c703b

View file

@ -12,9 +12,8 @@ export PATH=$CWD/dependencies/bin:"$HOME"/.local/bin:"$PATH"
export PYTEST_PAR=2
export PYTEST_SENTRY_ALWAYS_REPORT=1
# If we're not in developer mode, tests spend a lot of time waiting for gossip!
# But if we're under valgrind, we can run out of memory!
if [ "$DEVELOPER" = 0 ] && [ "$VALGRIND" = 0 ]; then
# Allow up to 4 concurrent tests when not under valgrind, which might run out of memory.
if [ "$VALGRIND" = 0 ]; then
PYTEST_PAR=4
fi