Browse Source

ci: Add pytest-sentry so we have a place to collect failing tests

paymod-03
Christian Decker 5 years ago
parent
commit
1ef0ca51b0
  1. 7
      .travis/build.sh

7
.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" ]

Loading…
Cancel
Save