Skip to content

Commit

Permalink
update tox.ini to a more readable and extendable state, add deactivat…
Browse files Browse the repository at this point in the history
…ed testenvs
  • Loading branch information
loechel committed May 2, 2017
1 parent 500d558 commit b13375a
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion tox.ini
@@ -1,7 +1,24 @@
[tox]
envlist = py27,py34,py35,py36,pypy,pypy3
envlist =
#flake8,
coverage-clean,
py27,
#py34,
#py35,
#py36,
#pypy,
#pypy3,
#isort,
#coverage-report,

skip_missing_interpreters = False

[testenv]
usedevelop = True
extras =
develop
test

install_command = pip install --no-cache-dir --no-binary=:all: {opts} {packages}

commands =
Expand All @@ -11,3 +28,37 @@ deps =
./develop/RestrictedPython
setenv =
PIP_NO_CACHE = 1

[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase

[testenv:coverage-report]
basepython = python2.7
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage combine
coverage html
coverage xml
coverage report

[testenv:isort]
basepython = python2.7
deps = isort
commands =
isort --check-only --recursive {toxinidir}/src {toxinidir}/tests {posargs}

[testenv:isort-apply]
basepython = python2.7
deps = isort
commands =
isort --apply --recursive {toxinidir}/src {toxinidir}/tests {posargs}

[testenv:flake8]
basepython = python2.7
deps = flake8
commands = flake8 --doctests src tests setup.py

0 comments on commit b13375a

Please sign in to comment.