You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/13 09:33:49 UTC

[43/46] libcloud git commit: reintroduce coverage but only for python 2.7

reintroduce coverage but only for python 2.7


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a4b61e07
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a4b61e07
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a4b61e07

Branch: refs/heads/trunk
Commit: a4b61e0769c21869d54940714f90f9d1dd94be1f
Parents: 895f844
Author: Anthony Shaw <an...@apache.org>
Authored: Thu Apr 13 14:40:21 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Thu Apr 13 14:40:21 2017 +1000

----------------------------------------------------------------------
 .travis.yml |  3 +++
 tox.ini     | 13 +++++++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a4b61e07/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index e78aeb1..20559bf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,6 +50,9 @@ matrix:
     - env: ENV=pylint
       python: 2.7
       before_script: TOX_ENV=pylint
+    - env: ENV=coverage
+      python: 2.7
+      before_script: TOX_ENV=coverage
     - env: ENV=docs
       python: 2.7
       before_script: TOX_ENV=docs-travis

http://git-wip-us.apache.org/repos/asf/libcloud/blob/a4b61e07/tox.ini
----------------------------------------------------------------------
diff --git a/tox.ini b/tox.ini
index 6447b79..2f8b966 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py{2.6,2.7,pypy,pypy3,3.3,3.4,3.5,3.6},lint,pylint,integration
+envlist = py{2.6,2.7,pypy,pypy3,3.3,3.4,3.5,3.6},lint,pylint,integration,coverage
 
 [testenv]
 passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
@@ -16,7 +16,7 @@ commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
 # coveralls
 basepython =
     py2.6: python2.6
-    {py2.7,lint,pylint,docs}: python2.7
+    {py2.7,lint,pylint,docs,coverage}: python2.7
     pypypy: pypy
     pypypy3: pypy3
     py3.3: python3.3
@@ -107,3 +107,12 @@ commands = flake8 --ignore=E402 --exclude="test" libcloud/
 deps = -r{toxinidir}/integration/requirements.txt
 
 commands = python -m integration
+
+[testenv:coverage]
+deps =
+    -r{toxinidir}/requirements-tests.txt
+set-env =
+    COVERALLS_REPO_TOKEN = GAB5ZuovdsVEFxSIyZE8YhDYU886iGW54
+commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
+           coverage run --source=libcloud setup.py test
+           coveralls