tox.ini
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 14 Jan 2016 17:14:16 +0100
changeset 11250 597f02c5cf5a
parent 11249 0ff4c02a1871
child 11285 581b5b64b382
permissions -rw-r--r--
[tox] Use py.test to run tests In unittest_rqlrewrite.py and repotest.py, rename utility functions so that they are not considered as "test functions" by py.test.
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 =
11230
cd0a2de956f6 [tox] Use a revision on proper branch for Yams
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11221
diff changeset
    12
  hg+https://hg.logilab.org/master/yams@20b43fb67201#egg=yams
11249
0ff4c02a1871 [test] Fix devtools unittest_i18n when ran without pytest
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11230
diff changeset
    13
  hg+https://hg.logilab.org/master/logilab/common@7ebacaa38380#egg=logilab-common
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    14
  py34: -e.
11057
0b59724cb3f2 Reorganize source tree to have a "cubicweb" top-level package
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10976
diff changeset
    15
  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
    16
  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
    17
  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
    18
  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
    19
  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
    20
  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
    21
  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
    22
  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
    23
  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
    24
  wsgi: -r{toxinidir}/cubicweb/wsgi/test/requirements.txt
11250
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    25
  pytest
10976
b150016e476c [tox] Ensure pytest gets run with virtualenv's python
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10975
diff changeset
    26
commands =
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    27
  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
    28
  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
    29
  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
    30
  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
    31
  cubicweb: {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps
11250
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    32
  cubicweb: {envpython} -m pytest {toxinidir}/cubicweb/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    33
  dataimport: {envpython} -m pytest {toxinidir}/cubicweb/dataimport/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    34
  devtools: {envpython} -m pytest {toxinidir}/cubicweb/devtools/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    35
  entities: {envpython} -m pytest {toxinidir}/cubicweb/entities/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    36
  etwist: {envpython} -m pytest {toxinidir}/cubicweb/etwist/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    37
  ext: {envpython} -m pytest {toxinidir}/cubicweb/ext/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    38
  hooks: {envpython} -m pytest {toxinidir}/cubicweb/hooks/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    39
  server: {envpython} -m pytest {toxinidir}/cubicweb/server/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    40
  sobjects: {envpython} -m pytest {toxinidir}/cubicweb/sobjects/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    41
  web: {envpython} -m pytest {toxinidir}/cubicweb/web/test {posargs}
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    42
  wsgi: {envpython} -m pytest {toxinidir}/cubicweb/wsgi/test {posargs}
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
    43
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
    44
[testenv:doc]
10518
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    45
changedir = doc
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    46
whitelist_externals =
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    47
  sphinx-build
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    48
deps =
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    49
  sphinx
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    50
commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html
11250
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    51
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    52
[pytest]
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    53
python_files = *test_*.py