Fix coverage reporting

This commit is contained in:
Ivan Kravets
2016-08-05 15:00:15 +03:00
2 changed files with 8 additions and 4 deletions

View File

@ -9,8 +9,10 @@ env:
install: install:
- git submodule update --init --recursive - git submodule update --init --recursive
- pip install -U pip setuptools tox codecov - pip install -U pip setuptools tox
- sudo apt-get install -qq lib32z1 lib32ncurses5 lib32bz2-1.0 # temporarily
# temporary hook to fix issue with gcc-pic32
- sudo apt-get install -qq lib32z1 lib32ncurses5 lib32bz2-1.0
script: script:
- tox -e $TOX_ENV - tox -e $TOX_ENV

View File

@ -57,7 +57,6 @@ usedevelop = True
passenv = * passenv = *
deps = deps =
pytest pytest
pytest-cov
commands = commands =
{envpython} --version {envpython} --version
py.test -v --basetemp="{envtmpdir}" tests py.test -v --basetemp="{envtmpdir}" tests
@ -65,5 +64,8 @@ commands =
[testenv:coverage] [testenv:coverage]
passenv = * passenv = *
basepython = python2.7 basepython = python2.7
deps =
pytest
pytest-cov
commands = commands =
py.test --cov=platformio -v tests --ignore=tests/test_examples.py --ignore=tests/test_pkgmanifest.py py.test --cov=platformio --cov-report xml --ignore=tests/test_examples.py --ignore=tests/test_pkgmanifest.py -v tests