| 1 | [tasks.coverage] |
| 2 | dependencies = ["codecov-clean"] |
| 3 | env = { "CARGO_INCREMENTAL" = "0", "RUSTFLAGS" = "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort", "RUSTDOCFLAGS" = "-Cpanic=abort" } |
| 4 | run_task = "codecov-grcov" |
| 5 | |
| 6 | [tasks.codecov-grcov] |
| 7 | dependencies = ["codecov-build", "codecov-test"] |
| 8 | command = "grcov" |
| 9 | args = [".", "-s", ".", "--binary-path", "./target/debug/", "-t", "html", "--branch", "--ignore-not-existing", "-o", "./target/debug/coverage/"] |
| 10 | |
| 11 | [tasks.codecov-open] |
| 12 | command = "open" |
| 13 | args = [ "./target/debug/coverage/index.html" ] |
| 14 | |
| 15 | [tasks.codecov-clean] |
| 16 | toolchain = "nightly" |
| 17 | command = "cargo" |
| 18 | args = [ "clean" ] |
| 19 | |
| 20 | [tasks.codecov-build] |
| 21 | toolchain = "nightly" |
| 22 | command = "cargo" |
| 23 | args = [ "build", "-p", "rust_decimal", "--features=default" ] |
| 24 | |
| 25 | [tasks.codecov-test] |
| 26 | toolchain = "nightly" |
| 27 | command = "cargo" |
| 28 | args = [ "test", "-p", "rust_decimal", "--features=default" ] |