Skip to content

Commit

Permalink
Retry source-based coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nimar committed Jan 20, 2022
1 parent 55169af commit 968febf
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,19 @@ jobs:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
components: rustfmt, clippy, llvm-tools-preview
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast -- --skip ui --skip check_formatting --skip check_clippy
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
#RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
#RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
- run: wget https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2
- run: tar xjf grcov-linux-x86_64.tar.bz2
RUSTFLAGS: "-Zinstrument-coverage"
LLVM_PROFILE_FILE: "ferric-%p-%m.profraw"
- name: Download grcov v0.8.2
run: |
wget https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2
tar xjf grcov-linux-x86_64.tar.bz2
- run: ./grcov . --binary-path ./target/debug -s . --ignore="/*" --ignore="ferric/examples/*" -t lcov --branch --ignore-not-existing > lcov.info
- name: Coveralls upload
uses: coverallsapp/github-action@master
Expand Down

0 comments on commit 968febf

Please sign in to comment.