Skip to content

Commit

Permalink
Ensure all tox commands use envpython
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Oct 16, 2017
1 parent 0009250 commit 5203eb2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ deps =
py26: unittest2

commands =
python -m unittest discover -s {toxinidir}/tests {posargs}
{envpython} -m unittest discover -s {toxinidir}/tests {posargs}

[testenv:py26]
commands =
python -m unittest2.__main__ discover -s {toxinidir}/tests {posargs}
{envpython} -m unittest2.__main__ discover -s {toxinidir}/tests {posargs}

[testenv:el7]
basepython = python2.7
Expand Down Expand Up @@ -47,7 +47,7 @@ deps =
flake8

commands =
flake8 *.py tests/*.py examples/*.py
{envpython} -m flake8 *.py tests/*.py examples/*.py

[testenv:pylint]
skip_install = True
Expand All @@ -59,7 +59,7 @@ deps =
pyenchant

commands =
pylint enlighten setup setup_helpers tests examples
{envpython} -m pylint enlighten setup setup_helpers tests examples

[testenv:lint]
skip_install = True
Expand All @@ -80,8 +80,8 @@ deps =
coverage

commands =
coverage run -m unittest discover -s {toxinidir}/tests {posargs}
coverage report
{envpython} -m coverage run -m unittest discover -s {toxinidir}/tests {posargs}
{envpython} -m coverage report

[testenv:codecov]
basepython = python3.6
Expand All @@ -92,7 +92,7 @@ deps =

commands =
{[testenv:coverage]commands}
codecov
{envpython} -m codecov

[testenv:docs]
basepython = python3.6
Expand All @@ -102,7 +102,7 @@ deps =
sphinx_rtd_theme

commands=
python setup.py spelling
python setup_helpers.py spelling
python setup.py html
{envpython} setup.py spelling
{envpython} setup_helpers.py spelling
{envpython} setup.py html

0 comments on commit 5203eb2

Please sign in to comment.