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