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

Commit

Permalink
Add feature flag for yaml files (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu authored Feb 18, 2021
1 parent 7c25fce commit 0f41bb7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SHA1SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a9f7fe8001d7f1cc21063fec88e6a3a1f2f896b4 codecov
ce0cfa65fe07b458037474f838759211bcfc17d1 codecov
2 changes: 1 addition & 1 deletion SHA256SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
49b78b3e7c9138b57ad5aa90c0845860028011485eedcc4077a5f2458913c1a7 codecov
0526a487e02b0eb5f314cd23a4d5b54c4e2a3e20b68ed5a1f2517b76d5ea73b8 codecov
2 changes: 1 addition & 1 deletion SHA512SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e4a906fcd5498dbe9bc31b54b233f83228f423de641013cfd7bf3c4d8f40a7da73e48d0a964936696b9e08ca85c1de78103d3bfbe66d281ae348307fa5c94500 codecov
b9820fd0c585f98028fdbccf40ff440c96270e8779925257c8fbfa476523b9690fb97b3e1fc52e8a9c3667916b2a6493c76f36dcf700da48a1bd7ff647131b54 codecov
13 changes: 12 additions & 1 deletion codecov
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ ft_xcodellvm="1"
ft_xcodeplist="0"
ft_gcovout="1"
ft_html="0"
ft_yaml="0"

_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 @@ -133,6 +134,7 @@ cat << EOF
-X gcovout Disable gcov output
-X html Enable coverage for HTML files
-X recursesubs Enable recurse submodules in git projects when searching for source files
-X yaml Enable coverage for YAML files
-N The commit SHA of the parent for which you are uploading coverage. If not present,
the parent will be determined using the API of your repository provider.
Expand Down Expand Up @@ -449,6 +451,9 @@ $OPTARG"
elif [ "$OPTARG" = "recursesubs" ];
then
git_ls_files_recurse_submodules_o="--recurse-submodules"
elif [ "$OPTARG" = "yaml" ];
then
ft_yaml="1"
fi
;;
"Z")
Expand Down Expand Up @@ -1492,12 +1497,18 @@ then
i="woff|eot|otf" # fonts
i="$i|gif|png|jpg|jpeg|psd" # images
i="$i|ptt|pptx|numbers|pages|md|txt|xlsx|docx|doc|pdf|csv" # docs
i="$i|yml|yaml|.gitignore" # supporting docs
i="$i|.gitignore" # supporting docs

if [ "$ft_html" != "1" ];
then
i="$i|html"
fi

if [ "$ft_yaml" != "1" ];
then
i="$i|yml|yaml"
fi

echo "$network" | grep -vwE "($i)$" >> "$upload_file"
fi
echo "<<<<<< network" >> "$upload_file"
Expand Down

0 comments on commit 0f41bb7

Please sign in to comment.