From 208ad9d11c3cbc335eba4bca625c86cc6a3a12ec Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 13 May 2016 14:15:32 +0900 Subject: tox: Integrate Coveralls.io To check the code coverage of the unit tests on web, this patch add integration of Coveralls.io (https://coveralls.io/). Usage: 1. Sign in to Coveralls.io with your GitHub account. 2. Add repos at your account page. 3. Execute tests on Travis-CI. Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- .travis.yml | 5 ++++- tox.ini | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c352b02..76eb1985 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,12 @@ env: - TOX_ENV=pep8 install: - - "pip install tox" + - pip install tox coveralls script: - NOSE_VERBOSE=0 tox -e $TOX_ENV +after_success: + - coveralls + sudo: false diff --git a/tox.ini b/tox.ini index f927e652..321b7062 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ deps = -U usedevelop = True passenv= NOSE_VERBOSE commands = - python ryu/tests/run_tests.py '{posargs}' + coverage run --source=ryu ryu/tests/run_tests.py '{posargs}' [testenv:pep8] commands = -- cgit v1.2.3