r-lib / covr

Compare deba938 ... +4 ... 0bdb94d

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 2 files from the diff.
Other files ignored by Codecov
.gitignore has changed.

@@ -183,6 +183,32 @@
Loading
183 183
                          slug = slug,
184 184
                          commit = commit %||% Sys.getenv("GITHUB_SHA"))
185 185
  # ---------
186 +
  # Google Cloud Build
187 +
  # ---------
188 +
  } else if (nzchar(Sys.getenv("GCB_PROJECT_ID"))) {
189 +
190 +
    # https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values
191 +
    codecov_url <- paste0(base_url, "/upload/v2") # nolint
192 +
193 +
    build_url <- sprintf("https://console.cloud.google.com/cloud-build/builds/%s?project=%s",
194 +
                         Sys.getenv("GCB_BUILD_ID"), Sys.getenv("GCB_PROJECT_ID"))
195 +
196 +
    name <- NULL
197 +
    pr <- NULL
198 +
    if(nzchar(Sys.getenv("GCB_TAG_NAME"))) name <- Sys.getenv("GCB_TAG_NAME")
199 +
    if(nzchar(Sys.getenv("GCB_PR_NUMBER"))) pr <- Sys.getenv("GCB_PR_NUMBER")
200 +
201 +
    codecov_query <- list(
202 +
      branch = branch %||% Sys.getenv("GCB_BRANCH_NAME"),
203 +
      service = "custom",
204 +
      build = Sys.getenv("GCB_BUILD_ID"),
205 +
      build_url = build_url,
206 +
      name = name,
207 +
      pr = pr,
208 +
      commit = commit %||% Sys.getenv("GCB_COMMIT_SHA")
209 +
    )
210 +
211 +
  # ---------
186 212
  # Local GIT
187 213
  # ---------
188 214
  } else {
@@ -202,7 +228,12 @@
Loading
202 228
203 229
  coverage_json <- to_codecov(coverage)
204 230
205 -
  httr::content(httr::RETRY("POST", url = codecov_url, query = codecov_query, body = coverage_json, encode = "json", httr::config(http_version = curl_http_1_1())))
231 +
  httr::content(httr::RETRY("POST",
232 +
                            url = codecov_url,
233 +
                            query = codecov_query,
234 +
                            body = coverage_json,
235 +
                            encode = "json",
236 +
                            httr::config(http_version = curl_http_1_1())))
206 237
}
207 238
208 239
curl_http_1_1 <- function() {

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R -0.65% 77.47%
src/reassign.c 100.00%
Project Totals (28 files) 77.66%
Loading