Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit a3d5c9c

Browse files
authored
fix: parse line coverage only (#1)
1 parent 91efcfc commit a3d5c9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎entrypoint.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ FILTERED_COVERAGE_PATH='./lcov_filtered.info'
99
if [ ! -z "3ドル" ]; then
1010
echo "Excluding 3ドル from coverage..."
1111
lcov --remove ${LCOV_PATH} 3ドル -o ${FILTERED_COVERAGE_PATH}
12-
CODE_COVERAGE=$(lcov --list ${FILTERED_COVERAGE_PATH} | sed -n "s/.*Total:|\(.*\)%.*/1円/p")
12+
CODE_COVERAGE=$(lcov --list ${FILTERED_COVERAGE_PATH} | sed -n "s/.*Total:|\([^%]*\)%.*/1円/p")
1313
else
14-
CODE_COVERAGE=$(lcov --list ${LCOV_PATH} | sed -n "s/.*Total:|\(.*\)%.*/1円/p")
14+
CODE_COVERAGE=$(lcov --list ${LCOV_PATH} | sed -n "s/.*Total:|\([^%]*\)%.*/1円/p")
1515
fi
1616

1717
echo "Minumum Coverage Required: ${MINIMUM_COVERAGE}%"
1818
echo "Current Code Coverage: ${CODE_COVERAGE}%"
19-
if (( $(echo "$CODE_COVERAGE < 2ドル" | bc) )); then exit 1; fi
19+
if (( $(echo "$CODE_COVERAGE < 2ドル" | bc) )); then exit 1; fi

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /