Skip to content

Commit

Permalink
ci: re-enable freebsd coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr committed Aug 26, 2023
1 parent 197537d commit 60af080
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
task:
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_PR != ''
environment:
CODECOV_TOKEN: ENCRYPTED[cfd48b16731c254067ef7b39a7083384127a594c6ad52e51cc32982da2eb8cc67c0a54f69736c29559a28664c615ab99]
matrix:
#- name: FreeBSD 11.3
# freebsd_instance:
# image_family: freebsd-11-3-snap
- name: FreeBSD 12.1
- name: FreeBSD 12.4
freebsd_instance:
image_family: freebsd-12-1-snap
- name: FreeBSD 13.0
image_family: freebsd-12-4
- name: FreeBSD 13.2
freebsd_instance:
image_family: freebsd-13-0-snap
image_family: freebsd-13-2
- name: FreeBSD 14.0
freebsd_instance:
image_family: freebsd-14-0
# Install Rust
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
Expand All @@ -19,9 +21,6 @@ task:
- rustup component add llvm-tools-preview
test_script:
- . $HOME/.cargo/env
- cargo test --all-features
# coverage is disabled for now
# see https://github.com/rust-lang/rust/issues/94616
# - env LLVM_PROFILE_FILE="calloop-%p-%m.profraw" RUSTFLAGS="-Zinstrument-coverage" cargo test --all-features
# - grcov . --binary-path ./target/debug -s . -t lcov --branch --llvm --ignore-not-existing --keep-only "src/sys/*" --excl-br-start "mod tests \{" --excl-start "mod tests \{" --excl-br-line "#\[derive\(" --excl-line "#\[derive\(" -o lcov.info
# - bash -c 'bash <(curl -s https://codecov.io/bash) -f lcov.info'
- env LLVM_PROFILE_FILE="calloop-%p-%m.profraw" RUSTFLAGS="-Zinstrument-coverage" cargo test --all-features
- grcov . --binary-path ./target/debug -s . -t lcov --branch --llvm --ignore-not-existing --keep-only "src/sys/*" --excl-br-start "mod tests \{" --excl-start "mod tests \{" --excl-br-line "#\[derive\(" --excl-line "#\[derive\(" -o lcov.info
- bash -c 'bash <(curl -s https://codecov.io/bash) -f lcov.info'

0 comments on commit 60af080

Please sign in to comment.