coveralls support

This commit is contained in:
Ammar Askar 2015-04-03 03:53:13 +05:00
parent 515b0b3719
commit 4dfdb6282b
4 changed files with 21 additions and 10 deletions

View File

@ -12,5 +12,10 @@ env:
- TOX_ENV=verify-manifest
install:
- pip install tox
- pip install python-coveralls
script:
- tox -e $TOX_ENV
after_success:
- coveralls
notifications:
email: false

View File

@ -1,6 +1,7 @@
pyCraft
=======
.. image:: https://travis-ci.org/ammaraskar/pyCraft.svg
:target: https://travis-ci.org/ammaraskar/pyCraft
Minecraft Python Client Library!

View File

@ -3,12 +3,17 @@ os.chdir("..")
from tox._config import parseconfig
print "language: python"
print "python: 2.7"
print "env:"
print("language: python")
print("python: 2.7")
print("env:")
for env in parseconfig(None, 'tox').envlist:
print " - TOX_ENV=%s" % env
print "install:"
print " - pip install tox"
print "script:"
print " - tox -e $TOX_ENV"
print(" - TOX_ENV=%s" % env)
print("install:")
print(" - pip install tox")
print(" - pip install python-coveralls")
print("script:")
print(" - tox -e $TOX_ENV")
print("after_success:")
print(" - coveralls")
print("notifications:")
print(" email: false")

View File

@ -27,7 +27,7 @@ deps =
[testenv:cover]
basepython = python3.4
commands =
nosetests --with-xunit --with-xcoverage --cover-package=minecraft --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=60
- nosetests --with-xunit --with-xcoverage --cover-package=minecraft --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=60
deps =
{[testenv]deps}
coverage
@ -53,7 +53,7 @@ basepython = python3.4
deps =
{[testenv]deps}
pylint
commands = pylint minecraft -f colorized -d all -e W -r n
commands = - pylint minecraft -f colorized -d all -e W -r n
[testenv:pylint-full]
basepython = python3.4