pyCraft/bin/generate_travis_yml.py

19 lines
470 B
Python
Raw Normal View History

2015-04-03 00:22:52 +02:00
import os
os.chdir("..")
from tox._config import parseconfig
2015-04-03 00:53:13 +02:00
print("language: python")
print("python: 2.7")
print("env:")
2015-04-03 00:22:52 +02:00
for env in parseconfig(None, 'tox').envlist:
2015-04-03 00:53:13 +02:00
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(' - if [ "$TOX_ENV" = "cover" ]; then coveralls; fi')
2015-04-03 00:53:13 +02:00
print("notifications:")
print(" email: false")