tox.ini
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 21 Mar 2016 10:53:44 +0100
changeset 11221 2cbd81aa2c19
parent 11215 4e79acdc36a6
child 11230 cd0a2de956f6
permissions -rw-r--r--
[tox] use master URL for yams repository No need to clone from review. This should help get consistent results.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     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},
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
     4
  py34-{cubicweb,dataimport,devtools,entities,ext,hooks,server,sobjects,web,wsgi}
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     5
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     6
[testenv]
11072
8c3155a0ae5b Handle virtualenv development mode
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11057
diff changeset
     7
usedevelop = True
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     8
sitepackages = True
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
     9
whitelist_externals =
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    10
  /usr/bin/touch
10975
6615ecb60244 [tox] Use generating environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10900
diff changeset
    11
deps =
11221
2cbd81aa2c19 [tox] use master URL for yams repository
Julien Cristau <julien.cristau@logilab.fr>
parents: 11215
diff changeset
    12
  hg+https://hg.logilab.org/master/yams@default#egg=yams
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    13
  py34: -e.
11057
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10976
diff changeset
    14
  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
    15
  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
    16
  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
    17
  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
    18
  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
    19
  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
    20
  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
    21
  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
    22
  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
    23
  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
    24
commands =
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    25
  py34-cubicweb: touch {envdir}/share/cubicweb/cubes/__init__.py
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    26
  py34-server: touch {envdir}/share/cubicweb/cubes/__init__.py
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    27
  py34-sobjects: touch {envdir}/share/cubicweb/cubes/__init__.py
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    28
  py34-web: touch {envdir}/share/cubicweb/cubes/__init__.py
11144
fd8bf29ed00e [tox] Generate test environments for Python 2.7 and 3.4
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11072
diff changeset
    29
  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
    30
  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
    31
  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
    32
  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
    33
  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
    34
  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
    35
  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
    36
  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
    37
  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
    38
  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
    39
  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
    40
  wsgi: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/wsgi/test {posargs}
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
    41
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
    42
[testenv:doc]
10518
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    43
changedir = doc
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    44
whitelist_externals =
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    45
  sphinx-build
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    46
deps =
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    47
  sphinx
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    48
commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html