diff --git a/.buildkite/runtests.yml b/.buildkite/runtests.yml index 0843d7e0..682d760b 100644 --- a/.buildkite/runtests.yml +++ b/.buildkite/runtests.yml @@ -6,6 +6,8 @@ steps: # Julia installation outside the sandbox - JuliaCI/julia#v1: version: '1.10' + - JuliaCI/julia-coverage#v1: + codecov: true - staticfloat/sandbox#v2: rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc" @@ -15,8 +17,8 @@ steps: - JuliaCI/julia#v1: version: "nightly" command: | - julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()' + julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "linux" @@ -28,9 +30,11 @@ steps: plugins: - JuliaCI/julia#v1: version: "nightly" + - JuliaCI/julia-coverage#v1: + codecov: true command: | - julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()' + julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "macos" @@ -40,9 +44,11 @@ steps: plugins: - JuliaCI/julia#v1: version: "nightly" + - JuliaCI/julia-coverage#v1: + codecov: true command: | - julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()' + julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "windows" diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..aa8c4305 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + patch: + default: + only_pulls: true # Only show the `codecov/patch` commit status on pull requests. + project: + default: + only_pulls: true # Only show the `codecov/project` commit status on pull requests. diff --git a/README.md b/README.md index d5b6de17..a39a7248 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ This package is part of the Julia standard library (stdlib). `LinearAlgebra.jl` provides functionality for performing linear algebra operations in Julia. +| **Build Status** | **Coverage** | +|:-------------------------------:|:-------------------------------:| +[![Build status](https://badge.buildkite.com/4032f509b3a7354c8ce7b34b98c7496d66adc4504b0101cbcf.svg?branch=master)](https://buildkite.com/julialang/linearalgebra-dot-jl) | [![][codecov-img]][codecov-url] | + +[codecov-img]: https://codecov.io/gh/JuliaLang/LinearAlgebra.jl/branch/master/graph/badge.svg +[codecov-url]: https://codecov.io/gh/JuliaLang/LinearAlgebra.jl + ## Migrating a Pull Request (PR) from the Julia repository to this repository Since this package was split out from the main Julia repository, you might have previously made a pull request (PR) to the Julia repo. You can easily migrate such PRs to this repository using the following steps: