mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Run unittest-based tests inside Tox as well.
Disable code coverage until #1033 can be fixed.
This commit is contained in:
parent
c857cb02b7
commit
2be8ce1862
2 changed files with 11 additions and 20 deletions
25
.travis.yml
25
.travis.yml
|
|
@ -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
|
||||
|
|
|
|||
6
tox.ini
6
tox.ini
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue