Skip to content

Commit 195fdd0

Browse files
committed
Remove OUTPUT_FILE stuff
1 parent 1773b7f commit 195fdd0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

script/cibuild

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ env
2323
echo "travis_fold:end:cibuild-environment-dump"
2424

2525
# Create a temporary file to capture output of various steps.
26-
export OUTPUT_FILE="$(mktemp)"
2726
function cleanup() {
28-
rm -rf "$OUTPUT_FILE"
2927
rm -f "${DIR}/.ruby-version"
3028
}
3129
trap cleanup EXIT
@@ -105,7 +103,10 @@ if [ "$RSPEC_TEST" = "true" ]; then
105103
exitcode=$?
106104
unset COVERAGE
107105
if [ "$exitcode" -ne 0 ]; then RSPEC_EXITCODE="$exitcode"; fi
108-
cat "$OUTPUT_FILE"
106+
107+
# Quick coverage report
108+
cat "$DIR/coverage/coverage.json" \
109+
| jq -r '.files[] | select(.covered_percent < 100) | (.covered_percent|tostring) + ": " + .filename'
109110
echo ""
110111

111112
# To avoid travis getting hung if it gets confused, we'll run each of these
@@ -129,8 +130,6 @@ if [ "$RSPEC_TEST" = "true" ]; then
129130
fi
130131
fi
131132
done
132-
133-
cat "$OUTPUT_FILE"
134133
done
135134
done
136135
export PATH="$SAVED_PATH"

0 commit comments

Comments
 (0)