From 821ce0e375836bc5517f3800d981dbdb2e4938d7 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 18 Apr 2019 12:12:17 -0400 Subject: [PATCH] Fix inaccurate comment The previous commit was merged somewhat prematurely, and fixed the coverage on Travis by limiting `kcov` to a single process. The previous commit also pins to a specific branch, which was not necessary to fix this issue, but is a good idea anyway to prevent bad commits on kcov's master branch from breaking PyO3's build. --- ci/travis/cover.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/travis/cover.sh b/ci/travis/cover.sh index 66b01f6d..8b8ee8e5 100755 --- a/ci/travis/cover.sh +++ b/ci/travis/cover.sh @@ -2,12 +2,14 @@ set -ex -### Run kcov in parallel ####################################################### +### Run kcov ################################################################### rm -f target/debug/pyo3*.d rm -f target/debug/test_*.d rm -f target/debug/test_doc-* +# Note: On travis this is run with -P1 because it started failing with +# `-P $(nproc)`. kcov can probably be run in parallel if used with different CI FILES=$(find . -path ./target/debug/pyo3\* -or -path ./target/debug/test_\*) echo $FILES | xargs -n1 -P1 sh -c ' dir="target/cov/$(basename $@)"