Skip to content

Commit

Permalink
Merge pull request #3 from JuliaCI/tb/uploader
Browse files Browse the repository at this point in the history
Use Coverage.jl for coverage submission.
  • Loading branch information
maleadt authored Oct 6, 2021
2 parents 86cd174 + ff1bea8 commit 7b67d1f
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,7 @@ fi
julia -e 'using Pkg
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true
Pkg.activate("julia-coverage", shared=true)
Pkg.add(PackageSpec(name="CoverageTools", uuid="c36e975a-824b-4404-a568-ef97ca766997", version="1"))
using CoverageTools
Pkg.add(PackageSpec(name="Coverage", uuid="a2441757-f6aa-5fb2-8edb-039e3f45d037", version="1.4"))
using Coverage
pf = vcat(map(process_folder, ARGS)...)
LCOV.writefile("lcov.info", pf)' "${dirs[@]}"


codecov=${BUILDKITE_PLUGIN_JULIA_COVERAGE_CODECOV:-false}

if [ "$codecov" = true ] ; then
echo "--- :codecov: Submitting to Codecov"

# NOTE: we use the Bash uploader because
# Coverage.jl doesn't support Buildkite
bash <(curl -s https://codecov.io/bash) -f lcov.info
fi
Codecov.submit(pf)' "${dirs[@]}"

0 comments on commit 7b67d1f

Please sign in to comment.