[tox] Generate test environments for Python 2.7 and 3.4

Test command for each environment are written down explicitly since I could not find a way to extract the "package" name (e.g. "hooks") from the environment name (e.g. "py34-hooks").

authorDenis Laxalde <denis.laxalde@logilab.fr>
changesetf647cda39d32
branchdefault
phasedraft
hiddenyes
parent revision#c9d12d1d3081 [testlib] put postgres test database in test/data/database directory
child revision<not specified>
files modified by this revision
tox.ini
# HG changeset patch
# User Denis Laxalde <denis.laxalde@logilab.fr>
# Date 1450772580 -3600
# Tue Dec 22 09:23:00 2015 +0100
# Node ID f647cda39d321f24e55e23df100d71ff47dfaacd
# Parent c9d12d1d3081bef8030174e848644adc728c0f18
[tox] Generate test environments for Python 2.7 and 3.4

Test command for each environment are written down explicitly since I could
not find a way to extract the "package" name (e.g. "hooks") from the
environment name (e.g. "py34-hooks").

diff --git a/tox.ini b/tox.ini
@@ -1,7 +1,7 @@
1  [tox]
2 -envlist = cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,sobjects,web,wsgi
3 +envlist = py{27,34}-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,sobjects,web,wsgi}
4 
5  [testenv]
6  sitepackages = True
7  deps =
8    cubicweb: -r{toxinidir}/test/requirements.txt
@@ -13,16 +13,22 @@
9    server: -r{toxinidir}/server/test/requirements.txt
10    sobjects: -r{toxinidir}/sobjects/test/requirements.txt
11    web: -r{toxinidir}/web/test/requirements.txt
12    wsgi: -r{toxinidir}/wsgi/test/requirements.txt
13  commands =
14 -  {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/{envname}/test {posargs}
15 -
16 -[testenv:cubicweb]
17 -commands =
18 -  {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps
19 -  {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/test {posargs}
20 +  cubicweb: {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps
21 +  cubicweb: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/test {posargs}
22 +  dataimport: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/dataimport/test {posargs}
23 +  devtools: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/devtools/test {posargs}
24 +  entities: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/entities/test {posargs}
25 +  etwist: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/etwist/test {posargs}
26 +  ext: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/ext/test {posargs}
27 +  hooks: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/hooks/test {posargs}
28 +  server: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/server/test {posargs}
29 +  sobjects: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/sobjects/test {posargs}
30 +  web: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/web/test {posargs}
31 +  wsgi: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/wsgi/test {posargs}
32 
33  [testenv:doc]
34  changedir = doc
35  whitelist_externals =
36    sphinx-build