-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (56 loc) · 2.61 KB
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Codecov
on:
push:
branches:
- master
pull_request:
branches:
- master
types: [opened, reopened, synchronize]
jobs:
codecov-grcov:
name: Generate code coverage
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: install toolchain according to rust-toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: default
override: true
components: llvm-tools-preview
- name: Checkout sources
uses: actions/checkout@v2
- name: Install grcov
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
env:
RUSTFLAGS: '-Zinstrument-coverage'
RUSTDOCFLAGS: '-Zinstrument-coverage'
- name: Run tests
env:
RUSTFLAGS: '-Zinstrument-coverage'
RUSTDOCFLAGS: '-Zinstrument-coverage'
LLVM_PROFILE_FILE: 'codecov-instrumentation-%p-%m.profraw'
run: |
cargo test -- --test-threads=1
cargo test -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features ws-no-park -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features ws-no-park -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features thread-pinning -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features thread-pinning -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features numa-aware -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features numa-aware -- --ignored --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features produce-metrics -- --test-threads=1
cargo test --manifest-path=executors/Cargo.toml --features produce-metrics -- --ignored --test-threads=1
- name: Run grcov
run: grcov executors/ --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v1