diff --git a/.travis/build.sh b/.travis/build.sh index 1cfca8887..734e5445a 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -10,6 +10,7 @@ export SOURCE_CHECK_ONLY=${SOURCE_CHECK_ONLY:-"false"} export COMPAT=${COMPAT:-1} 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! @@ -40,6 +41,10 @@ pip3 install --user -U --quiet --progress-bar off \ -r contrib/pyln-proto/requirements.txt \ -r contrib/pyln-testing/requirements.txt +pip3 install --user -U --quiet --progress-bar off \ + pytest-sentry \ + pytest-rerunfailures + echo "Configuration which is going to be built:" echo -en 'travis_fold:start:script.1\\r' ./configure CC="$CC" @@ -48,7 +53,7 @@ echo -en 'travis_fold:end:script.1\\r' cat > pytest.ini << EOF [pytest] -addopts=-p no:logging --color=no --force-flaky +addopts=-p no:logging --color=no --reruns=5 EOF if [ "$TARGET_HOST" == "arm-linux-gnueabihf" ] || [ "$TARGET_HOST" == "aarch64-linux-gnu" ]