summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini26
1 files changed, 13 insertions, 13 deletions
diff --git a/tox.ini b/tox.ini
index b77839c..f344e61 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,10 +21,10 @@ whitelist_externals =
sh
virtualenv
commands =
- perf,tests: {envbindir}/python -m pip install '{toxinidir}[format]'
- tests_nongpl: {envbindir}/python -m pip install '{toxinidir}[format_nongpl]'
+ perf,tests: {envpython} -m pip install '{toxinidir}[format]'
+ tests_nongpl: {envpython} -m pip install '{toxinidir}[format_nongpl]'
- tests,tests_nongpl: {envbindir}/python -m twisted.trial {posargs:jsonschema}
+ tests,tests_nongpl: {envpython} -m twisted.trial {posargs:jsonschema}
tests: {envpython} -m doctest {toxinidir}/README.rst
perf: mkdir {envtmpdir}/benchmarks/
@@ -36,13 +36,13 @@ commands =
build: {envtmpdir}/venv/bin/python -m pip install --quiet wheel
build: {envtmpdir}/venv/bin/python {toxinidir}/setup.py --quiet bdist_wheel --dist-dir={envtmpdir}/wheel
- build: sh -c '{envbindir}/python -m pip install --quiet --upgrade --force-reinstall {envtmpdir}/wheel/jsonschema*.whl'
+ build: sh -c '{envpython} -m pip install --quiet --upgrade --force-reinstall {envtmpdir}/wheel/jsonschema*.whl'
build: python2.7 {toxinidir}/setup.py --quiet sdist --dist-dir={envtmpdir}/sdist --format=gztar,zip
- build: sh -c '{envbindir}/python -m pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.tar.gz'
- build: sh -c '{envbindir}/python -m pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.zip'
+ build: sh -c '{envpython} -m pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.tar.gz'
+ build: sh -c '{envpython} -m pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.zip'
- build: {envbindir}/python -m pep517.check {toxinidir}
+ build: {envpython} -m pep517.check {toxinidir}
# FIXME: This has side effects! But it's not my fault... I can't
# figure out yet how to get setuptools to not create this directory
@@ -72,13 +72,13 @@ commands =
changedir = {toxinidir}
deps = readme_renderer
commands =
- {envbindir}/python setup.py check --restructuredtext --strict
+ {envpython} setup.py check --restructuredtext --strict
[testenv:safety]
deps = safety
commands =
- {envbindir}/python -m pip install '{toxinidir}[format]'
- {envbindir}/python -m safety check
+ {envpython} -m pip install '{toxinidir}[format]'
+ {envpython} -m safety check
[testenv:secrets]
deps = detect-secrets
@@ -89,7 +89,7 @@ basepython = pypy3
deps =
ebb-lint>=0.19.1.0
commands =
- {envbindir}/python -m flake8 {posargs} {toxinidir}/jsonschema {toxinidir}/docs {toxinidir}/setup.py
+ {envpython} -m flake8 {posargs} {toxinidir}/jsonschema {toxinidir}/docs {toxinidir}/setup.py
[testenv:coverage]
setenv =
@@ -97,7 +97,7 @@ setenv =
COVERAGE_DEBUG_FILE={envtmpdir}/coverage-debug
COVERAGE_FILE={envtmpdir}/coverage-data
commands =
- {envbindir}/python -m pip install '{toxinidir}[format]'
+ {envpython} -m pip install '{toxinidir}[format]'
{envbindir}/coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial jsonschema
{envbindir}/coverage report --rcfile={toxinidir}/.coveragerc --show-missing
{envbindir}/coverage html --directory={envtmpdir}/htmlcov --rcfile={toxinidir}/.coveragerc {posargs}
@@ -142,7 +142,7 @@ deps =
passenv = CODECOV* CI
setenv = {[testenv:coverage]setenv}
commands =
- {envbindir}/python -m pip install '{toxinidir}[format]'
+ {envpython} -m pip install '{toxinidir}[format]'
{envbindir}/coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial jsonschema
{envbindir}/coverage xml -o {envtmpdir}/coverage.xml
codecov --required --disable gcov --file {envtmpdir}/coverage.xml