mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-22 18:26:10 +01:00
coveralls support
This commit is contained in:
parent
515b0b3719
commit
4dfdb6282b
@ -12,5 +12,10 @@ env:
|
|||||||
- TOX_ENV=verify-manifest
|
- TOX_ENV=verify-manifest
|
||||||
install:
|
install:
|
||||||
- pip install tox
|
- pip install tox
|
||||||
|
- pip install python-coveralls
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- tox -e $TOX_ENV
|
||||||
|
after_success:
|
||||||
|
- coveralls
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
pyCraft
|
pyCraft
|
||||||
=======
|
=======
|
||||||
.. image:: https://travis-ci.org/ammaraskar/pyCraft.svg
|
.. image:: https://travis-ci.org/ammaraskar/pyCraft.svg
|
||||||
|
:target: https://travis-ci.org/ammaraskar/pyCraft
|
||||||
|
|
||||||
|
|
||||||
Minecraft Python Client Library!
|
Minecraft Python Client Library!
|
||||||
|
@ -3,12 +3,17 @@ os.chdir("..")
|
|||||||
|
|
||||||
from tox._config import parseconfig
|
from tox._config import parseconfig
|
||||||
|
|
||||||
print "language: python"
|
print("language: python")
|
||||||
print "python: 2.7"
|
print("python: 2.7")
|
||||||
print "env:"
|
print("env:")
|
||||||
for env in parseconfig(None, 'tox').envlist:
|
for env in parseconfig(None, 'tox').envlist:
|
||||||
print " - TOX_ENV=%s" % env
|
print(" - TOX_ENV=%s" % env)
|
||||||
print "install:"
|
print("install:")
|
||||||
print " - pip install tox"
|
print(" - pip install tox")
|
||||||
print "script:"
|
print(" - pip install python-coveralls")
|
||||||
print " - tox -e $TOX_ENV"
|
print("script:")
|
||||||
|
print(" - tox -e $TOX_ENV")
|
||||||
|
print("after_success:")
|
||||||
|
print(" - coveralls")
|
||||||
|
print("notifications:")
|
||||||
|
print(" email: false")
|
4
tox.ini
4
tox.ini
@ -27,7 +27,7 @@ deps =
|
|||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3.4
|
basepython = python3.4
|
||||||
commands =
|
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 =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
coverage
|
coverage
|
||||||
@ -53,7 +53,7 @@ basepython = python3.4
|
|||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
pylint
|
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]
|
[testenv:pylint-full]
|
||||||
basepython = python3.4
|
basepython = python3.4
|
||||||
|
Loading…
Reference in New Issue
Block a user