Skip to content

Commit

Permalink
make CI run unittest with -v, reducing tox verbosity from -vv to -v
Browse files Browse the repository at this point in the history
  • Loading branch information
taleinat committed Apr 23, 2020
1 parent 6af3861 commit b08e98c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -54,7 +54,7 @@ install:
- pip install "tox<3"

script:
- tox -vv
- tox -v

after_success:
case "$TOXENV" in
Expand Down
3 changes: 2 additions & 1 deletion appveyor.yml
Expand Up @@ -34,6 +34,7 @@ environment:
- PYTHON: 'C:\Python38-x64'
TOX_ENV: 'py38'
PYTHON_APPDATA_DIR: 'C:\Users\appveyor\AppData\Roaming\Python\Python38'
# TODO: Also test with PyPy

install:
- 'set PATH=%PYTHON_APPDATA_DIR%\Scripts;%PYTHON%\Scripts;%PYTHON%;%PATH%'
Expand All @@ -47,7 +48,7 @@ install:
build: off

test_script:
- 'build.cmd tox -e %TOX_ENV%-without_coverage-appveyor -vv'
- 'build.cmd tox -e %TOX_ENV%-without_coverage-appveyor -v'

after_test:
- 'build.cmd python setup.py bdist_wheel'
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Expand Up @@ -25,15 +25,15 @@ commands =
; * if running with coverage, merge the coverage run results from both runs
; * for Python 2.6 use the unit2 script since -m unittest2 doesn't work
; (but when running with coverage, coverage run -m unittest2 works)
{py27,pypy}-without_coverage: {envbindir}/unit2 discover tests -t {toxinidir}
{py27,pypy}-without_coverage: {envbindir}/unit2 discover -v tests -t {toxinidir}
{py27,pypy}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest2 discover tests
{py35,py36,py37,py38,pypy3}-without_coverage: {envpython} -m unittest discover tests
{py35,py36,py37,py38,pypy3}-without_coverage: {envpython} -m unittest discover -v tests
{py35,py36,py37,py38,pypy3}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.with_extensions
{envpython} -c 'import os; [os.remove(os.path.join(d, fn)) for (d, dns, fns) in os.walk(os.path.join(r"{envsitepackagesdir}", "fuzzysearch")) for fn in fns if fn.endswith((".so", ".pyd"))]'
{py27,pypy}-without_coverage: {envbindir}/unit2 discover tests -t {toxinidir}
{py27,pypy}-without_coverage: {envbindir}/unit2 discover -v tests -t {toxinidir}
{py27,pypy}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest2 discover tests
{py35,py36,py37,py38,pypy3}-without_coverage: {envpython} -m unittest discover tests
{py35,py36,py37,py38,pypy3}-without_coverage: {envpython} -m unittest discover -v tests
{py35,py36,py37,py38,pypy3}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.no_extensions
with_coverage: {envbindir}/coverage combine
Expand Down

0 comments on commit b08e98c

Please sign in to comment.