You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
703 B

2 years ago
  1. #!/usr/bin/env nix-shell
  2. #!nix-shell ../nix/nightly.nix -i bash
  3. set -o xtrace
  4. IGNORED_FILES="--ignore **/errors.rs\
  5. --ignore **/src/bin/*\
  6. --ignore transactions/src/parameters.rs\
  7. --ignore transactions/src/bench_utils/*\
  8. "
  9. export CARGO_INCREMENTAL=0
  10. export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=3 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests"
  11. export RUSTDOCFLAGS=""
  12. rm -vf ./target/**/*.gcda
  13. cargo build
  14. cargo test --lib
  15. grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing $IGNORED_FILES -o ./target/debug/coverage/
  16. echo "Coverage report available at target/debug/coverage/index.html."