diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-03 14:38:59 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-03 18:55:46 +0200 |
commit | bd4a9030aa26889ee7179d850872ffe90ab0f539 (patch) | |
tree | f31b58c19e1440bca7e06faf43274a003e3d0336 | |
parent | 8779a941c3b426b0133ed4e081ede483c52a0aa9 (diff) | |
download | qutebrowser-bd4a9030aa26889ee7179d850872ffe90ab0f539.tar.gz qutebrowser-bd4a9030aa26889ee7179d850872ffe90ab0f539.zip |
ci: Analyze backtraces on GitHub Actions
-rw-r--r-- | .github/workflows/ci.yml | 3 | ||||
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | scripts/dev/ci/backtrace.sh (renamed from scripts/dev/ci/travis_backtrace.sh) | 8 |
3 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 622fe0941..e330166e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,6 +144,9 @@ jobs: env: PYTEST_ADDOPTS: "--color=yes" run: "tox -e ${{ matrix.testenv}} -- ${{ matrix.args }}" + - name: Analyze backtraces + run: "bash scripts/dev/ci/backtrace.sh ${{ matrix.testenv }}" + if: "failure()" - name: Upload coverage if: "endsWith(matrix.testenv, '-cov')" uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml index e6fcf1927..c7cd9c79f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ script: - tox -e "$TESTENV" after_failure: - - bash scripts/dev/ci/travis_backtrace.sh + - bash scripts/dev/ci/backtrace.sh diff --git a/scripts/dev/ci/travis_backtrace.sh b/scripts/dev/ci/backtrace.sh index 227dde8a8..f9b32f6d6 100644 --- a/scripts/dev/ci/travis_backtrace.sh +++ b/scripts/dev/ci/backtrace.sh @@ -4,13 +4,15 @@ # to determine exe using file(1) and dump stack trace with gdb. # -case $TESTENV in +testenv=$1 + +case $testenv in py3*-pyqt*) - exe=$(readlink -f ".tox/$TESTENV/bin/python") + exe=$(readlink -f ".tox/$testenv/bin/python") full= ;; *) - echo "Skipping coredump analysis in testenv $TESTENV!" + echo "Skipping coredump analysis in testenv $testenv!" exit 0 ;; esac |