tox.ini
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Mon, 29 Oct 2018 12:05:57 +0100
changeset 2973 e2837a22e676
parent 2889 cfcfe7afe41a
child 3010 0f34817c52af
permissions -rw-r--r--
tox: don't enable global site package This is known to produce non-reproductible tests. Furthermore we deploy using pip and virtualenv on Centos 7 but we are testing on Debian stretch, so testing global site package on jenkins has no advantage. Thus we can disable some whitelist_externals which are no longer required.

[tox]
envlist = py27, flake8, check-manifest

[tox:jenkins]
envlist = py27, flake8-jenkins, check-manifest


[testenv]
deps =
  -rdev-requirements.txt
commands = {envpython} -m pytest {posargs:{toxinidir}/test}

[pytest]
python_files = *test_*.py
log_capture = false

[testenv:check-manifest]
skip_install = true
deps =
  check-manifest
commands =
  {envpython} -m check_manifest {toxinidir}


[testenv:flake8]
skip_install = true
deps =
  flake8
commands = flake8 {posargs:{toxinidir}}

[testenv:flake8-jenkins]
skip_install = true
deps =
  flake8
commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}

[flake8]
format = pylint
ignore = W503
max-line-length = 100
max-complexity = 12
exclude = doc/conf.py,cubicweb_seda/uiprops.py,cubicweb_seda/entities/generated.py,cubicweb_seda/views/uicfg.py,cubicweb_seda/schema/seda2.py,cubicweb_seda/migration/*,test/data/*,.tox/*


[testenv:make]
whitelist_externals =
  make
setenv =
    PYTHONHASHSEED = 0
commands = make -C cubicweb_seda {posargs}


[testenv:doc]
changedir = doc
deps =
  sphinx
commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html