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:
1 parent
19cdf80952
commit
3f4571d9e9
4 files changed
+44
-27
No files matched your search
Regular → Executable
+9
-5
@@ -1,12 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
# flake8: noqa
|
||||
|
||||
import sys
|
||||
import os
|
||||
os.chdir("..")
|
||||
import os.path
|
||||
from tox.config import parseconfig
|
||||
|
||||
from tox._config import parseconfig
|
||||
# This file is in pyCraft/bin/; it needs to execute in pyCraft/.
|
||||
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
print("language: python")
|
||||
print("python: 2.7")
|
||||
print("python: 3.5")
|
||||
print("env:")
|
||||
for env in parseconfig(None, 'tox').envlist:
|
||||
print(" - TOX_ENV=%s" % env)
|
||||
@@ -15,7 +19,7 @@ print(" - pip install tox")
|
||||
print(" - pip install python-coveralls")
|
||||
print("script:")
|
||||
print(" - tox -e $TOX_ENV")
|
||||
print("after_success:")
|
||||
print(' - if [ "$TOX_ENV" = "py27 ]; then tox -e coveralls; fi')
|
||||
print("after_script:")
|
||||
print(' - if [ "$TOX_ENV" = "py35" ]; then tox -e coveralls; fi')
|
||||
print("notifications:")
|
||||
print(" email: false")
|
||||
Reference in new issue
Block a user