Add tox and drone

issue4431
This commit is contained in:
Cédric Krier committed 2015-01-18 20:21:26 +01:00
1 parent de081a63e8
commit d164e21cb4
2 files changed
+26

No files matched your search

+9
View File
@@ -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
+17
View File
@@ -0,0 +1,17 @@
[tox]
envlist = py27-{sqlite,postgresql,mysql}
[testenv]
commands = {envpython} setup.py test
deps =
mock
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}