From e10797bafd9d3e825e6a325926d57afa637a5e2f Mon Sep 17 00:00:00 2001 From: ayush-eb Date: Mon, 22 Dec 2025 16:18:25 +0530 Subject: [PATCH] [MINOR] chore: migrate coverage upload to qlty --- .travis.yml | 6 ++++++ tox.ini | 1 + 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index ff3245f..31ae650 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,6 +46,12 @@ matrix: python: "3.7" script: - tox -e py37-attrs18,py37-attrs19,py37-attrs20,py37-attrs21,py37-pytest46,py37-flake8,coverage,py37-mypy + after_script: + - | + if [ -f coverage.xml ] && [ "$TRAVIS_BRANCH" = "master" ]; then + curl https://qlty.sh/install.sh | sh + $HOME/.qlty/bin/qlty coverage publish coverage.xml --format cobertura || true + fi dist: xenial # Lunatic-python-universal seems incompatible with Python 3.8 # - stage: build diff --git a/tox.ini b/tox.ini index c400aee..e2addbb 100644 --- a/tox.ini +++ b/tox.ini @@ -54,6 +54,7 @@ deps = coverage~=4.5 commands = coverage combine coverage report + coverage xml -o coverage.xml [testenv:py27-coverage] skip_install = true