diff options
author | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-04-16 10:43:40 +0100 |
---|---|---|
committer | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-04-16 10:43:40 +0100 |
commit | 36bf157b28f97c95fffe332778b0352d31407327 (patch) | |
tree | cbea9ec9935a8ae7a1e9b960217caaf230d102f4 | |
parent | 2acfbade27fbd1da21a289cb102a77eaccfc900d (diff) | |
download | buildstream-36bf157b28f97c95fffe332778b0352d31407327.tar.gz |
tox.ini: Tidy up command conditionals
Remove the "py{35,36,37}" part of the conditionals in the "commands"
section of [testenv]. These are redundant as they will match all our test
environments.
-rw-r--r-- | tox.ini | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -13,17 +13,17 @@ skip_missing_interpreters = true [testenv] commands = # Running with coverage reporting enabled - py{35,36,37}-!external-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs} - py{35,36,37}-!nocover: mkdir -p .coverage-reports + !external-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs} + !nocover: mkdir -p .coverage-reports external-!nocover: {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} --cov=buildstream --cov-append {posargs} - py{35,36,37}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} + !nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} # Running with coverage reporting disabled - py{35,36,37}-!external-nocover: pytest --basetemp {envtmpdir} {posargs} + !external-nocover: pytest --basetemp {envtmpdir} {posargs} external-nocover: {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} {posargs} deps = - py{35,36,37}: -rrequirements/requirements.txt - py{35,36,37}: -rrequirements/dev-requirements.txt - py{35,36,37}: -rrequirements/plugin-requirements.txt + -rrequirements/requirements.txt + -rrequirements/dev-requirements.txt + -rrequirements/plugin-requirements.txt # Only require coverage and pytest-cov when using it !nocover: -rrequirements/cov-requirements.txt @@ -46,13 +46,12 @@ passenv = # These keys are not inherited by any other sections # setenv = - py{35,36,37}: COVERAGE_FILE = {envtmpdir}/.coverage - py{35,36,37}: XDG_CACHE_HOME = {envtmpdir}/cache - py{35,36,37}: XDG_CONFIG_HOME = {envtmpdir}/config - py{35,36,37}: XDG_DATA_HOME = {envtmpdir}/share + COVERAGE_FILE = {envtmpdir}/.coverage + XDG_CACHE_HOME = {envtmpdir}/cache + XDG_CONFIG_HOME = {envtmpdir}/config + XDG_DATA_HOME = {envtmpdir}/share whitelist_externals = - py{35,36,37}: mv mkdir |