1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-03 05:35:58 +00:00

fix test coverage / codecov.io, use xcode6.4

This commit is contained in:
Thomas Waldmann 2015-08-08 01:55:46 +02:00
parent ba75356314
commit 5864bd76eb
7 changed files with 22 additions and 6 deletions

13
.coveragerc Normal file
View file

@ -0,0 +1,13 @@
[run]
branch = True
source = borg
[report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
ignore_errors = True

1
.gitignore vendored
View file

@ -20,3 +20,4 @@ docs/usage/*.inc
borg.build/ borg.build/
borg.dist/ borg.dist/
borg.exe borg.exe
.coverage

View file

@ -19,15 +19,15 @@ matrix:
env: TOXENV=py34 env: TOXENV=py34
- language: generic - language: generic
os: osx os: osx
osx_image: beta-xcode6.3 osx_image: xcode6.4
env: TOXENV=py32 env: TOXENV=py32
- language: generic - language: generic
os: osx os: osx
osx_image: beta-xcode6.3 osx_image: xcode6.4
env: TOXENV=py33 env: TOXENV=py33
- language: generic - language: generic
os: osx os: osx
osx_image: beta-xcode6.3 osx_image: xcode6.4
env: TOXENV=py34 env: TOXENV=py34
install: install:

View file

@ -39,5 +39,5 @@ fi
python -m virtualenv ~/.venv python -m virtualenv ~/.venv
source ~/.venv/bin/activate source ~/.venv/bin/activate
pip install tox pytest codecov Cython pip install tox pytest pytest-cov codecov Cython
pip install -e . pip install -e .

View file

@ -6,5 +6,6 @@ set -x
NO_COVERAGE_TOXENVS=(pep8) NO_COVERAGE_TOXENVS=(pep8)
if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then
source ~/.venv/bin/activate source ~/.venv/bin/activate
bash <(curl -s https://codecov.io/bash) -e TRAVIS_OS_NAME,TOXENV ln .tox/.coverage .coverage
codecov -e TRAVIS_OS_NAME,TOXENV
fi fi

View file

@ -1,4 +1,5 @@
tox tox
mock mock
pytest pytest
pytest-cov<2.0.0
Cython Cython

View file

@ -9,6 +9,6 @@ envlist = py32, py33, py34
# not really matter, should be just different from the toplevel dir. # not really matter, should be just different from the toplevel dir.
changedir = {toxworkdir} changedir = {toxworkdir}
deps = -rrequirements.d/development.txt deps = -rrequirements.d/development.txt
commands = py.test --pyargs {posargs:borg.testsuite} commands = py.test --cov=borg --pyargs {posargs:borg.testsuite}
# fakeroot -u needs some env vars: # fakeroot -u needs some env vars:
passenv = * passenv = *