Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
don't run coverage for pypy;
Browse files Browse the repository at this point in the history
  • Loading branch information
Buck Golemon committed Dec 24, 2014
1 parent c441901 commit aceadd9
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ export SITEPACKAGES=${SITEPACKAGES:-.}
export PROJECT=venv_update
NCPU=$(getconf _NPROCESSORS_CONF)

coverage erase
py.test -n $NCPU \
--cov --cov-config=$TOP/.coveragerc --cov-report='' \
"$@" $TOP/tests $SITEPACKAGES/${PROJECT}.py
coverage combine
coverage report --rcfile=$TOP/.coveragerc --fail-under 94 # FIXME: should be 100
if python -c 'import platform; exit(not(platform.python_implementation() == "PyPy"))'; then
# coverage under pypy takes too dang long:
# https://bitbucket.org/pypy/pypy/issue/1871/10x-slower-than-cpython-under-coverage#comment-14404182
PYPY=true
else
PYPY=false
fi

if $PYPY; then
py.test -n $NCPU \
"$@" $TOP/tests $SITEPACKAGES/${PROJECT}.py
else
coverage erase
py.test -n $NCPU \
--cov --cov-config=$TOP/.coveragerc --cov-report='' \
"$@" $TOP/tests $SITEPACKAGES/${PROJECT}.py
coverage combine
coverage report --rcfile=$TOP/.coveragerc --fail-under 94 # FIXME: should be 100
fi

0 comments on commit aceadd9

Please sign in to comment.