mirror of
https://github.com/containers/youki
synced 2024-05-06 07:36:17 +02:00
add codecov
This commit is contained in:
parent
14856066b1
commit
743b6a6918
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
codecov:
|
||||||
|
notify:
|
||||||
|
after_n_builds: 1
|
||||||
|
require_ci_to_pass: false
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
precision: 2
|
||||||
|
round: down
|
||||||
|
range: 50..75
|
||||||
|
|
||||||
|
comment:
|
||||||
|
layout: "header, diff"
|
||||||
|
behavior: default
|
||||||
|
require_changes: false
|
|
@ -0,0 +1,7 @@
|
||||||
|
branch: true
|
||||||
|
ignore-not-existing: true
|
||||||
|
llvm: true
|
||||||
|
filter: covered
|
||||||
|
output-type: lcov
|
||||||
|
output-path: ./lcov.info
|
||||||
|
prefix-dir: /home/user/build/
|
|
@ -61,11 +61,25 @@ jobs:
|
||||||
run: ./build.sh --release
|
run: ./build.sh --release
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: '0'
|
||||||
|
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
|
||||||
|
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
|
||||||
- name: Run doc tests
|
- name: Run doc tests
|
||||||
run: cargo test --doc
|
run: cargo test --doc
|
||||||
- name: Run cgroup tests
|
- name: Run cgroup tests
|
||||||
working-directory: cgroups
|
working-directory: cgroups
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: '0'
|
||||||
|
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
|
||||||
|
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
|
||||||
|
- name: Coverage
|
||||||
|
uses: actions-rs/grcov@v0.1
|
||||||
|
with:
|
||||||
|
config: .github/grcov.yml
|
||||||
|
- name: Upload Results
|
||||||
|
uses: codecov/codecov-action@v2
|
||||||
integration_tests:
|
integration_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/containers/youki)](https://github.com/containers/youki/graphs/commit-activity)
|
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/containers/youki)](https://github.com/containers/youki/graphs/commit-activity)
|
||||||
[![GitHub contributors](https://img.shields.io/github/contributors/containers/youki)](https://github.com/containers/youki/graphs/contributors)
|
[![GitHub contributors](https://img.shields.io/github/contributors/containers/youki)](https://github.com/containers/youki/graphs/contributors)
|
||||||
[![Github CI](https://github.com/containers/youki/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/containers/youki/actions)
|
[![Github CI](https://github.com/containers/youki/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/containers/youki/actions)
|
||||||
|
[![codecov](https://codecov.io/gh/containers/youki/branch/main/graph/badge.svg)](https://codecov.io/gh/containers/youki)
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="docs/youki.png" width="230" height="230">
|
<img src="docs/youki.png" width="230" height="230">
|
||||||
|
|
Loading…
Reference in New Issue