coverage by package (#6099)

This commit is contained in:
Rob Walker 2019-09-25 14:01:09 -07:00 committed by GitHub
parent 93ad637c5c
commit aea0326b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ source ci/_
reportName="lcov-${CI_COMMIT:0:9}"
if [[ -n $1 ]]; then
crate="--manifest-path=$1/Cargo.toml"
crate="--package $1"
else
crate="--all --exclude solana-local-cluster --exclude solana-validator-cuda"
fi
@ -37,7 +37,7 @@ rm -rf target/cov/$reportName
source ci/rust-version.sh nightly
# shellcheck disable=SC2086 #
_ cargo +$rust_nightly build --target-dir target/cov $crate
_ cargo +$rust_nightly build --tests --bins --target-dir target/cov $crate
# shellcheck disable=SC2086 #
_ cargo +$rust_nightly test --target-dir target/cov --lib $crate