Browse Source

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.
mpp
Christian Decker 5 years ago
committed by Rusty Russell
parent
commit
817f7c703b
  1. 5
      .travis/build.sh

5
.travis/build.sh

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

Loading…
Cancel
Save