Create cov.sh

add --verify
add RUSTFLAGS="-C link-dead-code"
This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-06-13 02:22:37 +03:00 committed by GitHub
parent 2501334ed7
commit 42ad8bbdb0

View File

@ -21,7 +21,7 @@ if ! type $KCOV > /dev/null; then
fi
. ./scripts/targets.sh
cargo test $TARGETS --no-run || exit $?
RUSTFLAGS="-C link-dead-code" cargo test $TARGETS --no-run || exit $?
KCOV_TARGET="target/cov"
@ -46,10 +46,10 @@ mkdir -p $KCOV_TARGET
echo "Cover RUST"
for FILE in `find target/debug/deps ! -name "*.*"`
do
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET $FILE
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET $FILE --verify
done
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET target/debug/parity-*
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET target/debug/parity-* --verify
echo "Cover JS"
cd js
npm install&&npm run test:coverage