Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
suppress gcov output via -- #121
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepeak committed May 11, 2018
1 parent 9be39d8 commit 4678d21
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion codecov
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ft_s3="1"
ft_network="1"
ft_xcodellvm="1"
ft_xcodeplist="0"
ft_gcovout="1"

_git_root=$(git rev-parse --show-toplevel 2>/dev/null || hg root 2>/dev/null || echo $PWD)
git_root="$_git_root"
Expand Down Expand Up @@ -123,6 +124,7 @@ cat << EOF
-X search Disable searching for reports
-X xcode Disable xcode processing
-X network Disable uploading the file network
-X gcovout Disable gcov output
-R root dir Used when not in git/hg project to identify project root directory
-y conf file Used to specify the location of the .codecov.yml config file
Expand Down Expand Up @@ -379,6 +381,9 @@ $OPTARG"
elif [ "$OPTARG" = "coveragepy" ] || [ "$OPTARG" = "py" ];
then
ft_coveragepy="0"
elif [ "$OPTARG" = "gcovout" ];
then
ft_gcovout="0"
elif [ "$OPTARG" = "xcodellvm" ];
then
ft_xcodellvm="1"
Expand Down Expand Up @@ -916,7 +921,13 @@ then
if [ "$ft_gcov" = "1" ];
then
say " ${e}->${x} Running $gcov_exe for Obj-C"
bash -c "find $ddp -type f -name '*.gcda' $gcov_include $gcov_ignore -exec $gcov_exe -p $gcov_arg {} +" || true
if [ "$ft_gcovout" = "1" ];
then
# suppress gcov output
bash -c "find $ddp -type f -name '*.gcda' $gcov_include $gcov_ignore -exec $gcov_exe -p $gcov_arg {} +" || true 2>/dev/null
else
bash -c "find $ddp -type f -name '*.gcda' $gcov_include $gcov_ignore -exec $gcov_exe -p $gcov_arg {} +" || true
fi
fi
fi

Expand Down

0 comments on commit 4678d21

Please sign in to comment.