Skip to content

Commit 128518e

Browse files
authored
setup coverage (#1144)
1 parent 15f7e32 commit 128518e

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.buildkite/runtests.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ steps:
2929
# Julia installation outside the sandbox
3030
- JuliaCI/julia#v1:
3131
version: '1.10'
32+
- JuliaCI/julia-coverage#v1:
33+
codecov: true
3234
- staticfloat/sandbox#v2:
3335
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz
3436
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc"
@@ -38,8 +40,8 @@ steps:
3840
- JuliaCI/julia#v1:
3941
version: "nightly"
4042
command: |
41-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
42-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
43+
julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()'
44+
julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl
4345
agents:
4446
queue: "julia"
4547
os: "linux"
@@ -50,9 +52,11 @@ steps:
5052
plugins:
5153
- JuliaCI/julia#v1:
5254
version: "nightly"
55+
- JuliaCI/julia-coverage#v1:
56+
codecov: true
5357
command: |
54-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
55-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
58+
julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()'
59+
julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl
5660
agents:
5761
queue: "julia"
5862
os: "macos"
@@ -62,9 +66,11 @@ steps:
6266
plugins:
6367
- JuliaCI/julia#v1:
6468
version: "nightly"
69+
- JuliaCI/julia-coverage#v1:
70+
codecov: true
6571
command: |
66-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
67-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
72+
julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()'
73+
julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl
6874
agents:
6975
queue: "julia"
7076
os: "windows"

.codecov.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
patch:
4+
default:
5+
only_pulls: true # Only show the `codecov/patch` commit status on pull requests.
6+
project:
7+
default:
8+
only_pulls: true # Only show the `codecov/project` commit status on pull requests.

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ This package is part of the Julia standard library (stdlib).
44

55
`LinearAlgebra.jl` provides functionality for performing linear algebra operations in Julia.
66

7+
| **Build Status** | **Coverage** |
8+
|:-------------------------------:|:-------------------------------:|
9+
[![Build status](https://badge.buildkite.com/4032f509b3a7354c8ce7b34b98c7496d66adc4504b0101cbcf.svg?branch=master)](https://buildkite.com/julialang/linearalgebra-dot-jl) | [![][codecov-img]][codecov-url] |
10+
11+
[codecov-img]: https://codecov.io/gh/JuliaLang/LinearAlgebra.jl/branch/master/graph/badge.svg
12+
[codecov-url]: https://codecov.io/gh/JuliaLang/LinearAlgebra.jl
13+
714
## Migrating a Pull Request (PR) from the Julia repository to this repository
815

916
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:

0 commit comments

Comments
 (0)