Skip to content

Instantly share code, notes, and snippets.

@luzfcb
Forked from danverbraganza/tox.ini
Last active August 29, 2015 14:06
Show Gist options
  • Save luzfcb/dd8a53acc51a07498b5c to your computer and use it in GitHub Desktop.
Save luzfcb/dd8a53acc51a07498b5c to your computer and use it in GitHub Desktop.
[tox]
envlist=py27,lint
[testenv]
downloadcache={homedir}/.pipcache
distribute=True
sitepackages=False
[testenv:py27]
deps=nose
lettuce
coverage
mock
commands=
coverage erase
bash -c "test \"$(expr \"{posargs}\" : \".*\.feature\")\" -eq 0 && {envbindir}/coverage run {envbindir}/nosetests -w ./test/unit/ {posargs} || ( echo \"[TOX] Skipping nosetests\" && test \"$(expr \"{posargs}\" : \".*\.feature\")\" -ne 0 ) "
bash -c "test -z \"{posargs}\" -o `expr \"{posargs}\" : \".*\.feature\"` -ne 0 && {envbindir}/coverage run {envbindir}/lettuce ./test/features/{posargs} || ( echo \"[TOX] Skipping lettuce\" && test \"$(expr \"{posargs}\" : \".*\.feature\")\" -eq 0 ) "
coverage combine
coverage report --include=* -m
[testenv:lint]
basepython=python2.7
deps=pylint
commands=pylint juicer2 --rcfile=pylint.rc
[testenv:docs]
basepython=python
changedir=doc
deps=sphinx
commands=sphinx-build -b html ./source ./html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment