summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2016-05-13 14:15:32 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-13 22:33:21 +0900
commit208ad9d11c3cbc335eba4bca625c86cc6a3a12ec (patch)
treea255c17a34e24faf3af4e6f142d80bf9397b2fae
parentdc6e2b869168aefb99abb2019f5bd460e5f5ea5f (diff)
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 <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--.travis.yml5
-rw-r--r--tox.ini2
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 =