2020-02-17 04:47:12 +03:00
|
|
|
#!/bin/bash
|
|
|
|
export CARGO_INCREMENTAL=0
|
2020-02-16 15:06:25 +03:00
|
|
|
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"
|
|
|
|
|
|
|
|
cargo test --no-run
|
|
|
|
cargo test
|
|
|
|
|
2020-02-17 04:47:12 +03:00
|
|
|
zip -0 ccov.zip `find . \( -name "swc*.gc*" -o -name 'ast_node*.gc*' -o -name 'enum_kind*.gc*' -o -name 'string-enum*.gc*' -o -name 'from_variant*.gc*' \) -print`;
|
2020-02-16 15:06:25 +03:00
|
|
|
|
|
|
|
grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" -o lcov.info;
|
|
|
|
|
2020-02-17 04:47:12 +03:00
|
|
|
bash <(curl -s https://codecov.io/bash) -f lcov.info
|