mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
Add specific versions for environments in tox
This commit is contained in:
parent
89088ad750
commit
85864eb747
1 changed files with 13 additions and 4 deletions
17
tox.ini
17
tox.ini
|
|
@ -4,7 +4,7 @@
|
|||
# and then run "tox" from this directory.
|
||||
|
||||
[tox]
|
||||
envlist = test, flake8, docs
|
||||
envlist = py{27,33,34,35}-{test,cov}, py{27,33}-flake8, docs
|
||||
|
||||
[_test]
|
||||
deps =
|
||||
|
|
@ -31,12 +31,21 @@ deps =
|
|||
files = beets beetsplug beet test setup.py docs
|
||||
|
||||
[testenv]
|
||||
basepython =
|
||||
py27: python2.7
|
||||
py33: python3.3
|
||||
py34: python3.4
|
||||
py35: python3.5
|
||||
passenv =
|
||||
NOSE_SHOW_SKIPPED # Undocumented feature of nose-show-skipped.
|
||||
deps =
|
||||
test: {[_test]deps}
|
||||
flake8: {[_flake8]deps}
|
||||
{test,cov}: {[_test]deps}
|
||||
py{27,33}-flake8: {[_flake8]deps}
|
||||
commands =
|
||||
cov: nosetests --with-coverage {posargs}
|
||||
test: nosetests {posargs}
|
||||
flake8: flake8 {posargs:--min-version=2.7} {[_flake8]files}
|
||||
py27-flake8: flake8 --min-version 2.7 {posargs} {[_flake8]files}
|
||||
py33-flake8: flake8 --min-version 3.3 {posargs} {[_flake8]files}
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python2.7
|
||||
|
|
|
|||
Loading…
Reference in a new issue