From 42dc70874c593bc67fc599e76815bef1415cff52 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 17 Sep 2016 01:18:37 +0200 Subject: [PATCH] Automate `coverage` via Travis and Codecov --- .travis.yml | 5 ++++- tox.ini | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 418ca7a..48a15d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python install: - - pip install tox + - pip install tox codecov env: - TOX_ENV=pypy @@ -26,3 +26,6 @@ matrix: - python: 3.5 env: - TOX_ENV=flake8 + +after_success: + - coverage combine && codecov \ No newline at end of file diff --git a/tox.ini b/tox.ini index 156850d..30dacf8 100644 --- a/tox.ini +++ b/tox.ini @@ -10,9 +10,13 @@ envlist = [testenv] +deps = + six + coverage + commands = scour --version - python testscour.py + coverage run --parallel-mode --source=scour testscour.py [testenv:flake8]