Update testing configuration:

(1) Add py35 job to Travis.
(2) To address issue #57: run tests that connect to Mojang's auth server exactly once, during the py35 job.
(3) Measure coverage exactly once, during the py35 job; always submit the result to coveralls.
(4) Fix miscellaneous errors in generate_travis_yml.py.
This commit is contained in:
joo committed 2017-05-19 11:58:14 +01:00
1 parent 19cdf80952
commit 3f4571d9e9
4 files changed
+44 -27

No files matched your search

+20 -18
View File
@@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py27, py33, py34, py35, py36, pypy, cover, flake8, pylint-errors, pylint-full, verify-manifest
envlist = py27, py33, py34, py35, pypy, flake8, pylint-errors, pylint-full, verify-manifest
[testenv]
commands = nosetests
@@ -15,20 +15,7 @@ deps =
cryptography
future
[testenv:py27]
deps =
{[testenv]deps}
mock
[testenv:pypy]
deps =
{[testenv]deps}
mock
[testenv:cover]
basepython = python3.5
commands =
nosetests --with-xunit --with-xcoverage --cover-package=minecraft --nocapture --cover-erase --cover-inclusive --cover-tests --cover-branches --cover-min-percentage=60
deps =
{[testenv]deps}
coverage
@@ -36,14 +23,29 @@ deps =
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
basepython = {[testenv:cover]basepython}
commands =
{[testenv:cover]commands}
coveralls
deps =
{[testenv:cover]deps}
coveralls
[testenv:py27]
deps =
{[testenv]deps}
mock
[testenv:py35]
setenv =
PYCRAFT_RUN_INTERNET_TESTS=1
commands =
nosetests --with-xunit --with-xcoverage --cover-package=minecraft --cover-erase --cover-inclusive --cover-tests --cover-branches --cover-min-percentage=60
deps =
{[testenv:cover]deps}
[testenv:pypy]
deps =
{[testenv]deps}
mock
[testenv:flake8]
basepython = python3.5
commands =
@@ -82,4 +84,4 @@ deps =
check-manifest
commands =
check-manifest