mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 15:25:12 +01:00
3f4571d9e9
(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.
26 lines
645 B
Python
Executable File
26 lines
645 B
Python
Executable File
#!/usr/bin/env python
|
|
# flake8: noqa
|
|
|
|
import sys
|
|
import os
|
|
import os.path
|
|
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: 3.5")
|
|
print("env:")
|
|
for env in parseconfig(None, 'tox').envlist:
|
|
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_script:")
|
|
print(' - if [ "$TOX_ENV" = "py35" ]; then tox -e coveralls; fi')
|
|
print("notifications:")
|
|
print(" email: false")
|