pyCraft/bin/generate_travis_yml.py

26 lines
645 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
# flake8: noqa
import sys
2015-04-03 00:22:52 +02:00
import os
import os.path
from tox.config import parseconfig
2015-04-03 00:22:52 +02:00
# This file is in pyCraft/bin/; it needs to execute in pyCraft/.
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
2015-04-03 00:22:52 +02:00
2015-04-03 00:53:13 +02:00
print("language: python")
print("python: 3.5")
2015-04-03 00:53:13 +02:00
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_script:")
print(' - if [ "$TOX_ENV" = "py35" ]; then tox -e coveralls; fi')
2015-04-03 00:53:13 +02:00
print("notifications:")
2015-04-06 02:02:07 +02:00
print(" email: false")