Skip to content

Commit 9d69f4c

Browse files
author
Marcello Seri
committed
.coverage: bisects names are not unique
Signed-off-by: Marcello Seri <[email protected]>
1 parent 8ab1ac7 commit 9d69f4c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.coverage.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ export BISECT_ENABLE=YES
2020
jbuilder runtest
2121

2222
# move all bisect files here
23-
find . -name 'bisect*.out' -exec mv {} . \;
23+
BISECTS=$(find . -name 'bisect*.out')
24+
printf -v OUTS " %s" $BISECTS
2425

2526
DIRECTORIES=$(find _build/default -type d -not -path '*/\.*')
2627
printf -v INCLUDES " -I %s" $DIRECTORIES
2728

28-
bisect-ppx-report bisect*.out $INCLUDES -text report
29-
bisect-ppx-report bisect*.out $INCLUDES -summary-only -text summary
30-
bisect-ppx-report bisect*.out $INCLUDES -html report-html
29+
bisect-ppx-report $OUTS $INCLUDES -text report
30+
bisect-ppx-report $OUTS $INCLUDES -summary-only -text summary
31+
bisect-ppx-report $OUTS $INCLUDES -html report-html
3132

3233
if [ -n "$TRAVIS" ]; then
3334
echo "\$TRAVIS set; running ocveralls and sending to coveralls.io..."
34-
ocveralls --prefix _build/default bisect*.out --send
35+
ocveralls --prefix _build/default $OUTS --send
3536
else
3637
echo "\$TRAVIS not set; displaying results of bisect-ppx-report..."
3738
cat report

0 commit comments

Comments
 (0)