Run unittest-based tests inside Tox as well.

Disable code coverage until #1033 can be fixed.
This commit is contained in:
Pavel Minaev 2018-11-18 20:26:34 -08:00 committed by Pavel Minaev
parent c857cb02b7
commit 2be8ce1862
2 changed files with 11 additions and 20 deletions

View file

@ -22,22 +22,13 @@ jobs:
script:
- flake8
install:
- pip install -U pip setuptools -r test_requirements.txt
script:
- tox -- -vv
- |
if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then
pushd src
coverage run -m unittest discover -vv -s ..
popd
fi
- tox
after_success:
- |
if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then
pushd src
bash <(curl -s https://codecov.io/bash)
popd
fi
# after_success:
# - |
# if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then
# pushd src
# bash <(curl -s https://codecov.io/bash)
# popd
# fi

View file

@ -1,10 +1,10 @@
[tox]
envlist = py27,py34,py35,py36,py37
envlist = py{27,34,35,36,37}-{pytest,unittest}
[testenv]
changedir = pytests
deps = -rtest_requirements.txt
setenv =
COVERAGE_FILE = .coverage.{envname}
commands =
pytest {posargs:}
pytest: pytest {posargs:-vv}
unittest: unittest discover {posargs:-vv}