Modify tox and add Jenkisfile
This commit is contained in:
20
tox.ini
20
tox.ini
@@ -1,17 +1,19 @@
|
||||
[tox]
|
||||
envlist = {py27,py33,py34,py35}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
|
||||
envlist = py37-sqlite, stats
|
||||
|
||||
[testenv]
|
||||
commands = {envpython} setup.py test
|
||||
basepython=python3.7
|
||||
commands = coverage run setup.py test
|
||||
deps =
|
||||
{py27,py33,py34,py35}-postgresql: psycopg2 >= 2.5
|
||||
pypy-postgresql: psycopg2cffi >= 2.5
|
||||
mysql: MySQL-python
|
||||
sqlite: sqlitebck
|
||||
coverage
|
||||
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}
|
||||
|
||||
[testenv:stats]
|
||||
basepython=python3.7
|
||||
commands =
|
||||
coverage report --omit=.tox/*
|
||||
coverage xml
|
||||
|
||||
Reference in New Issue
Block a user