author | Alexandre Richardson <alexandre.richardson@logilab.fr> |
Tue, 12 Jan 2016 14:31:14 +0100 | |
changeset 11169 | c1eb5a676c80 |
parent 11144 | fd8bf29ed00e |
child 11179 | 104d41c99180 |
permissions | -rw-r--r-- |
10512 | 1 |
[tox] |
11144
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
2 |
envlist = |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
3 |
py27-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,sobjects,web,wsgi}, |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
4 |
py34-{dataimport,devtools,entities,ext,hooks,wsgi} |
10512 | 5 |
|
6 |
[testenv] |
|
11072
8c3155a0ae5b
Handle virtualenv development mode
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11057
diff
changeset
|
7 |
usedevelop = True |
10512 | 8 |
sitepackages = True |
10975
6615ecb60244
[tox] Use generating environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10900
diff
changeset
|
9 |
deps = |
11057
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
10 |
cubicweb: -r{toxinidir}/cubicweb/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
11 |
devtools: -r{toxinidir}/cubicweb/devtools/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
12 |
entities: -r{toxinidir}/cubicweb/entities/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
13 |
etwist: -r{toxinidir}/cubicweb/etwist/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
14 |
ext: -r{toxinidir}/cubicweb/ext/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
15 |
hooks: -r{toxinidir}/cubicweb/hooks/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
16 |
server: -r{toxinidir}/cubicweb/server/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
17 |
sobjects: -r{toxinidir}/cubicweb/sobjects/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
18 |
web: -r{toxinidir}/cubicweb/web/test/requirements.txt |
0b59724cb3f2
Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10976
diff
changeset
|
19 |
wsgi: -r{toxinidir}/cubicweb/wsgi/test/requirements.txt |
10976
b150016e476c
[tox] Ensure pytest gets run with virtualenv's python
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10975
diff
changeset
|
20 |
commands = |
11144
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
21 |
cubicweb: {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
22 |
cubicweb: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
23 |
dataimport: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/dataimport/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
24 |
devtools: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/devtools/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
25 |
entities: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/entities/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
26 |
etwist: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/etwist/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
27 |
ext: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/ext/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
28 |
hooks: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/hooks/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
29 |
server: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/server/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
30 |
sobjects: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/sobjects/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
31 |
web: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/web/test {posargs} |
fd8bf29ed00e
[tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11072
diff
changeset
|
32 |
wsgi: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/wsgi/test {posargs} |
10512 | 33 |
|
34 |
[testenv:doc] |
|
10518
d276e4b332ba
[tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10512
diff
changeset
|
35 |
changedir = doc |
d276e4b332ba
[tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10512
diff
changeset
|
36 |
whitelist_externals = |
d276e4b332ba
[tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10512
diff
changeset
|
37 |
sphinx-build |
d276e4b332ba
[tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10512
diff
changeset
|
38 |
deps = |
d276e4b332ba
[tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10512
diff
changeset
|
39 |
sphinx |
d276e4b332ba
[tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10512
diff
changeset
|
40 |
commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html |