| 1 | task: |
| 2 | only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_PR != '' |
| 3 | matrix: |
| 4 | #- name: FreeBSD 11.3 |
| 5 | # freebsd_instance: |
| 6 | # image_family: freebsd-11-3-snap |
| 7 | - name: FreeBSD 12.1 |
| 8 | freebsd_instance: |
| 9 | image_family: freebsd-12-1-snap |
| 10 | - name: FreeBSD 13.0 |
| 11 | freebsd_instance: |
| 12 | image_family: freebsd-13-0-snap |
| 13 | # Install Rust |
| 14 | setup_script: |
| 15 | - fetch https://sh.rustup.rs -o rustup.sh |
| 16 | - sh rustup.sh -y --profile=minimal --default-toolchain nightly |
| 17 | - pkg install -y grcov bash |
| 18 | - . $HOME/.cargo/env |
| 19 | - rustup component add llvm-tools-preview |
| 20 | test_script: |
| 21 | - . $HOME/.cargo/env |
| 22 | - cargo test --all-features |
| 23 | # coverage is disabled for now |
| 24 | # see https://github.com/rust-lang/rust/issues/94616 |
| 25 | # - env LLVM_PROFILE_FILE="calloop-%p-%m.profraw" RUSTFLAGS="-Zinstrument-coverage" cargo test --all-features |
| 26 | # - 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 |
| 27 | # - bash -c 'bash <(curl -s https://codecov.io/bash) -f lcov.info' |