Ignore immer in code coverage checks, lint-whitespace.sh and copyright_header.py scripts (#4268)

This commit is contained in:
UdjinM6 2021-07-19 12:32:29 +03:00 committed by GitHub
parent 46e3a8c295
commit f11c1bc1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -178,7 +178,7 @@ $(BITCOIN_TX_BIN): FORCE
$(MAKE) -C src $(@F) $(MAKE) -C src $(@F)
if USE_LCOV if USE_LCOV
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/leveldb/" -p "src/crc32c/" -p "src/bench/" -p "src/univalue" -p "src/crypto/ctaes" -p "src/secp256k1" LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/immer/" -p "src/leveldb/" -p "src/crc32c/" -p "src/bench/" -p "src/univalue" -p "src/crypto/ctaes" -p "src/secp256k1"
baseline.info: baseline.info:
$(LCOV) -c -i -d $(abs_builddir)/src -o $@ $(LCOV) -c -i -d $(abs_builddir)/src -o $@

View File

@ -31,6 +31,7 @@ EXCLUDE_COMPILED = re.compile('|'.join([fnmatch.translate(m) for m in EXCLUDE]))
EXCLUDE_DIRS = [ EXCLUDE_DIRS = [
# git subtrees # git subtrees
"src/crypto/ctaes/", "src/crypto/ctaes/",
"src/immer/",
"src/leveldb/", "src/leveldb/",
"src/secp256k1/", "src/secp256k1/",
"src/univalue/", "src/univalue/",

View File

@ -31,14 +31,14 @@ if [ -z "${COMMIT_RANGE}" ]; then
fi fi
showdiff() { showdiff() {
if ! git diff -U0 "${COMMIT_RANGE}" -- "." ":(exclude)depends/patches/" ":(exclude)src/leveldb/" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/" ":(exclude)doc/release-notes/"; then if ! git diff -U0 "${COMMIT_RANGE}" -- "." ":(exclude)depends/patches/" ":(exclude)src/immer/" ":(exclude)src/leveldb/" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/" ":(exclude)doc/release-notes/"; then
echo "Failed to get a diff" echo "Failed to get a diff"
exit 1 exit 1
fi fi
} }
showcodediff() { showcodediff() {
if ! git diff -U0 "${COMMIT_RANGE}" -- *.cpp *.h *.md *.py *.sh ":(exclude)src/leveldb/" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/" ":(exclude)doc/release-notes/"; then if ! git diff -U0 "${COMMIT_RANGE}" -- *.cpp *.h *.md *.py *.sh ":(exclude)src/immer/" ":(exclude)src/leveldb/" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/" ":(exclude)doc/release-notes/"; then
echo "Failed to get a diff" echo "Failed to get a diff"
exit 1 exit 1
fi fi