Add tox and drone
issue4431 review6771002
This commit is contained in:
1 parent
94b7a8676a
commit
0ad32a6849
3 files changed
+33
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
image: python2.7
|
||||||
|
env:
|
||||||
|
- POSTGRESQL_URI=postgresql://postgres@127.0.0.1:5432/
|
||||||
|
- MYSQL_URI=mysql://root@127.0.0.1:3306/
|
||||||
|
script:
|
||||||
|
- pip install tox
|
||||||
|
- tox -e sqlite,postgresql
|
||||||
|
services:
|
||||||
|
- postgres
|
||||||
@@ -47,6 +47,12 @@ for dep in info.get('depends', []):
|
|||||||
requires.append(get_require_version('trytond_%s' % dep))
|
requires.append(get_require_version('trytond_%s' % dep))
|
||||||
requires.append(get_require_version('trytond'))
|
requires.append(get_require_version('trytond'))
|
||||||
|
|
||||||
|
tests_require = [get_require_version('proteus')]
|
||||||
|
dependency_links = []
|
||||||
|
if minor_version % 2:
|
||||||
|
# Add development index for testing with proteus
|
||||||
|
dependency_links.append('https://trydevpi.tryton.org/%s.%s')
|
||||||
|
|
||||||
setup(name=name,
|
setup(name=name,
|
||||||
version=version,
|
version=version,
|
||||||
description='Tryton module for accounting',
|
description='Tryton module for accounting',
|
||||||
@@ -91,6 +97,7 @@ setup(name=name,
|
|||||||
],
|
],
|
||||||
license='GPL-3',
|
license='GPL-3',
|
||||||
install_requires=requires,
|
install_requires=requires,
|
||||||
|
dependency_links=dependency_links,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
entry_points="""
|
entry_points="""
|
||||||
[trytond.modules]
|
[trytond.modules]
|
||||||
@@ -98,4 +105,5 @@ setup(name=name,
|
|||||||
""",
|
""",
|
||||||
test_suite='tests',
|
test_suite='tests',
|
||||||
test_loader='trytond.test_loader:Loader',
|
test_loader='trytond.test_loader:Loader',
|
||||||
|
tests_require=tests_require,
|
||||||
)
|
)
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[tox]
|
||||||
|
envlist = py27-{sqlite,postgresql,mysql}
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
commands = {envpython} setup.py test
|
||||||
|
deps =
|
||||||
|
postgresql: psycopg2 >= 2.0
|
||||||
|
mysql: MySQL-python
|
||||||
|
setenv =
|
||||||
|
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
|
||||||
|
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
|
||||||
|
mysql: TRYTOND_DATABASE_URI={env:MYSQL_URI:mysql://}
|
||||||
|
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
|
||||||
|
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
|
||||||
|
mysql: DB_NAME={env:MYSQL_NAME:test}
|
||||||
|
install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages}
|
||||||
Reference in new issue
Block a user