#!/usr/bin/env fish
argparse 'no-test' -- $argv
or exit 1
cargo fmt
and cargo fmt --all -- --check
and cargo matrix clippy --all-targets -- -D warnings
and cargo matrix build
or exit $status
if not set -q _flag_no_test
cargo nextest run
and cargo llvm-cov nextest -F unstable --no-report
and cargo llvm-cov report --lcov --output-path lcov.info
and cargo llvm-cov report --html
end