Skip to content

Commit

Permalink
Try a different approach to collecting coverage from Python code
Browse files Browse the repository at this point in the history
For some reason the previous approach seems to have stopped working.
  • Loading branch information
bmerry committed Sep 16, 2020
1 parent 9c52df0 commit 8045a14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ if [ "$TEST_PYTHON" = "yes" ]; then
if [ "$COVERAGE" = "yes" ]; then
echo '[build_ext]' > setup.cfg
echo 'coverage = yes' >> setup.cfg
# pip's build isolation prevents us getting .gcno files, so build with setuptools
pip install pybind11==2.5.0
CC="$CC -Werror" python ./setup.py install
# pip's build isolation prevents us getting .gcno files, so build in place
CC="$CC -Werror" pip install -v -e .
else
CC="$CC -Werror" pip install -v .
fi
Expand Down

0 comments on commit 8045a14

Please sign in to comment.