forked from rucio/rucio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (57 loc) · 2.18 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
envlist = py26,py27,oracle
#,py26-clients,py27-clients
[testenv]
deps = -r{toxinidir}/tools/pip-requires-client
-r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/pip-requires-test
commands=
ln -sf {toxinidir}/etc/rucio.sqlite.cfg /opt/rucio/etc/rucio.cfg
/usr/sbin/apachectl restart
{toxinidir}/tools/reset_database.py
{toxinidir}/tools/sync_rses.py
{toxinidir}/tools/sync_meta.py
py.test --exitfirst -m non_protocol \
{envdir}/lib/python2.7/site-packages/rucio/tests/ -v \
[] # substitute with tox' positional arguments
#nosetests -v --logging-filter=-sqlalchemy,-migrate,-requests,-rucio.client.baseclient --exclude=.*test_rse_protocol_.* \
# [] # substitute with tox' positional arguments
[testenv:oracle]
deps = -r{toxinidir}/tools/pip-requires-client
-r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/pip-requires-test
cx_Oracle==5.1.1
commands=
/bin/ln -sf {toxinidir}/etc/rucio.ATLAS_RUCIO_TEST.cfg /opt/rucio/etc/rucio.cfg
/usr/sbin/apachectl restart
{toxinidir}/tools/reset_database.py
{toxinidir}/tools/sync_rses.py
{toxinidir}/tools/sync_meta.py
py.test -s --exitfirst -n 5 -m non_protocol \
{envdir}/lib/python2.7/site-packages/rucio/tests/ -v \
[] # substitute with tox' positional arguments
[testenv:py26]
commands=
/bin/ln -sf {toxinidir}/etc/rucio.sqlite.cfg /opt/rucio/etc/rucio.cfg
/usr/sbin/apachectl restart
{toxinidir}/tools/reset_database.py
{toxinidir}/tools/sync_rses.py
{toxinidir}/tools/sync_meta.py
# cp tools/patches/nose/tools.py {envdir}/lib/python2.6/site-packages/nose/tools.py
cp tools/patches/nose/trivial.py {envdir}/lib/python2.6/site-packages/nose/tools/trivial.py
py.test --exitfirst -m non_protocol \
{envdir}/lib/python2.6/site-packages/rucio/tests/ -v \
[] # substitute with tox' positional arguments
[flake8]
max-line-length=256
# [testenv:py26-clients]
# deps = -r{toxinidir}/tools/pip-requires-client
# -r{toxinidir}/tools/pip-requires-test
# commands=
#
#
#
# [testenv:py27-clients]
# deps = -r{toxinidir}/tools/pip-requires-client
# -r{toxinidir}/tools/pip-requires-test
# commands=