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:")
|
2015-04-03 01:13:59 +02:00
|
|
|
print(' - if [ "$TOX_ENV" = "cover" ]; then coveralls; fi')
|
2015-04-03 00:53:13 +02:00
|
|
|
print("notifications:")
|
|
|
|
print(" email: false")
|