| Index: tox.ini | 
| =================================================================== | 
| new file mode 100644 | 
| --- /dev/null | 
| +++ b/tox.ini | 
| @@ -0,0 +1,43 @@ | 
| +[tox] | 
| +envlist = hg, notifications-nodeps, stats | 
| +skipsdist = true | 
| + | 
| +[pytest] | 
| +python_files = *.py | 
| + | 
| +[testenv] | 
| +basepython=python2 | 
| +deps = | 
| + pytest | 
| + mock | 
| + jinja2 | 
| +setenv = | 
| + SITESCRIPTS_CONFIG = ./.sitescripts.example | 
| + | 
| +[testenv:filterhits] | 
| +# Depends on MySQL client (TODO: and server?). | 
| 
 
mathias
2016/05/23 22:25:32
Probably libmysqlclient-dev plus maybe some common
 
 | 
| +deps = | 
| + {[testenv]deps} | 
| + m2crypto | 
| + MySQL-python | 
| +commands = | 
| + py.test sitescripts/filterhits/test | 
| + | 
| +[testenv:hg] | 
| +commands = py.test sitescripts/hg/test | 
| 
 
Sebastian Noack
2016/05/24 07:58:36
Is there any benefit on using py.test to invoke st
 
Vasily Kuznetsov
2016/05/24 18:15:36
Nicer reporting. Also it allows having a single re
 
 | 
| + | 
| +[testenv:notifications-nodeps] | 
| +commands = py.test sitescripts/notifications/test/parser.py | 
| + | 
| +[testenv:notifications] | 
| +# Depends on MySQL client (TODO: and server?). | 
| +deps = | 
| + {[testenv]deps} | 
| + m2crypto | 
| + MySQL-python | 
| +commands = py.test sitescripts/notifications/test | 
| + | 
| +[testenv:stats] | 
| +commands = | 
| + python ensure_dependencies.py | 
| + py.test sitescripts/stats/test |