2017-05-19 12:58:14 +02:00
|
|
|
#!/usr/bin/env python
|
2016-06-18 19:22:18 +02:00
|
|
|
# flake8: noqa
|
|
|
|
|
2017-05-19 12:58:14 +02:00
|
|
|
import sys
|
2015-04-03 00:22:52 +02:00
|
|
|
import os
|
2017-05-19 12:58:14 +02:00
|
|
|
import os.path
|
|
|
|
from tox.config import parseconfig
|
2015-04-03 00:22:52 +02:00
|
|
|
|
2017-05-19 12:58:14 +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")
|
2017-05-19 12:58:14 +02:00
|
|
|
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")
|
2017-05-19 12:58:14 +02:00
|
|
|
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")
|