Skip to content

Commit

Permalink
Specify codecov sha
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Feb 14, 2025
1 parent 29eee5b commit fe939db
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions compiler+runtime/bin/jank/compiler+runtime/coverage.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@
:out lcov-file}
(str llvm-cov " export --format=lcov --instr-profile " merged-file
" build/jank-test --object build/jank"))
(let [codecov-script (str compiler+runtime-dir "/build/codecov")]
(let [codecov-script (str compiler+runtime-dir "/build/codecov")
sha (or (util/get-env "GITHUB_SHA")
(util/quiet-shell {} "git rev-parse HEAD"))]
(util/quiet-shell {:out codecov-script} "curl -s https://cli.codecov.io/latest/linux/codecov")
(util/quiet-shell {} (str "chmod +x " codecov-script))
(util/quiet-shell {}
(str codecov-script
" upload-process --disable-search --fail-on-error "
" upload-process --disable-search --fail-on-error"
" -C " sha
" -t " (util/get-env "CODECOV_TOKEN")
" -n 'service'-" (util/get-env "GITHUB_RUN_ID" "local")
" -F service -f " lcov-file))))
" -n " (util/get-env "JANK_MATRIX_ID" "matrix") "-" (util/get-env "GITHUB_RUN_ID" "local")
" -f " lcov-file))))
(util/log-info-with-time duration "Merged and published coverage report"))))

(when (= *file* (System/getProperty "babashka.file"))
Expand Down

0 comments on commit fe939db

Please sign in to comment.