tox.ini
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Jun 2016 13:51:25 +0200
branch3.23
changeset 11395 8f035d5d5953
parent 11390 e5453b19bc6e
child 11419 32c3026f7810
permissions -rw-r--r--
prepare 3.23.1
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 =
11354
6b7f4c6745a0 [tox] Split migractions tests from server environment
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11285
diff changeset
     3
  py27-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,migractions,sobjects,web,wsgi},
6b7f4c6745a0 [tox] Split migractions tests from server environment
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11285
diff changeset
     4
  py34-{cubicweb,dataimport,devtools,entities,ext,hooks,server,migractions,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 =
11285
581b5b64b382 [tox] Put development dependencies into a dev-requirements.txt file
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11250
diff changeset
    12
  -rdev-requirements.txt
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
11354
6b7f4c6745a0 [tox] Split migractions tests from server environment
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11285
diff changeset
    21
  migractions: -r{toxinidir}/cubicweb/server/test/requirements.txt
11057
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
10976
b150016e476c [tox] Ensure pytest gets run with virtualenv's python
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10975
diff changeset
    25
commands =
11179
104d41c99180 [tox] Enable all applicable py34 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11144
diff changeset
    26
  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
    27
  py34-server: touch {envdir}/share/cubicweb/cubes/__init__.py
11354
6b7f4c6745a0 [tox] Split migractions tests from server environment
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11285
diff changeset
    28
  py34-migractions: touch {envdir}/share/cubicweb/cubes/__init__.py
11179
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}
11354
6b7f4c6745a0 [tox] Split migractions tests from server environment
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11285
diff changeset
    39
  server: {envpython} -m pytest {toxinidir}/cubicweb/server/test {posargs} --ignore={toxinidir}/cubicweb/server/test/unittest_migractions.py
6b7f4c6745a0 [tox] Split migractions tests from server environment
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11285
diff changeset
    40
  migractions: {envpython} -m pytest {toxinidir}/cubicweb/server/test/unittest_migractions.py {posargs}
11250
597f02c5cf5a [tox] Use py.test to run tests
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11249
diff changeset
    41
  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
    42
  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
    43
  wsgi: {envpython} -m pytest {toxinidir}/cubicweb/wsgi/test {posargs}
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
    44
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
    45
[testenv:doc]
10518
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    46
changedir = doc
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    47
deps =
d276e4b332ba [tox] Update doc testenv to account for documentation restructuring
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10512
diff changeset
    48
  sphinx
11390
e5453b19bc6e [tox] Ensure virtualenv's python is used to build the documentation
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11354
diff changeset
    49
commands =
e5453b19bc6e [tox] Ensure virtualenv's python is used to build the documentation
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11354
diff changeset
    50
  {envpython} -c 'import sphinx; sphinx.main()' -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