Modify tox and add Jenkisfile

This commit is contained in:
Àngel Àlvarez
2020-04-11 18:33:53 +02:00
parent e5102dd948
commit 516fc33ab3
2 changed files with 61 additions and 9 deletions

20
tox.ini
View File

@@ -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