Skip to content

Commit

Permalink
Switch to the new CodeCov uploader
Browse files Browse the repository at this point in the history
Reuse the script introduced in dlang/dmd#13139
  • Loading branch information
MoonlightSentinel committed Oct 27, 2021
1 parent ee3a24b commit 4d83689
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
command: ./.circleci/run.sh coverage
name: Run Phobos testsuite with -cov=ctfe
- run:
command: bash <(curl -s https://codecov.io/bash)
command: ./.circleci/run.sh coverage
name: Upload coverage files to CodeCov
7 changes: 7 additions & 0 deletions .circleci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ coverage()
sed -i 's/^ *[0-9]*\(|.*nocoverage.*\)$/ \1/' ./*.lst
}

# Upload coverage reports to CodeCov
codecov()
{
OS_NAME=linux source ../dmd/ci/codecov.sh
}

# extract publictests and run them independently
publictests()
{
Expand Down Expand Up @@ -144,6 +150,7 @@ case $1 in
install-deps) install_deps ;;
setup-repos) setup_repos ;;
coverage) coverage ;;
codecov) codecov ;;
publictests) publictests ;;
style_lint) echo "style_lint is now run at Buildkite";;
# has_public_example has been removed and is kept for compatibility with older PRs
Expand Down

0 comments on commit 4d83689

Please sign in to comment.