From 2015a878adfe4adbfef0bf7a429d65b73b4a8637 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com> Date: Tue, 23 Feb 2021 12:50:43 +0900 Subject: [PATCH] fix missing coverage (#533) * investigate missing coverage * test different pattern * wip pattern testing * try globastar --- .github/workflows/codecov.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a156877e5..30da8eabb 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -8,8 +8,8 @@ jobs: strategy: matrix: nim-options: [ - "", - "-d:libp2p_pubsub_anonymize=true -d:libp2p_pubsub_sign=false -d:libp2p_pubsub_verify=false", + "", + "-d:libp2p_pubsub_anonymize=true -d:libp2p_pubsub_sign=false -d:libp2p_pubsub_verify=false", "-d:libp2p_pubsub_sign=true -d:libp2p_pubsub_verify=true" ] test-program: [ @@ -31,7 +31,9 @@ jobs: nim c $NIM_OPTIONS -r ${{ matrix.test-program }} cd nimcache; rm *.c; cd .. lcov --capture --directory nimcache --output-file coverage/coverage.info - lcov --extract coverage/coverage.info `pwd`/libp2p/* `pwd`/libp2p/**/* `pwd`/libp2p/**/**/* --output-file coverage/coverage.f.info + shopt -s globstar + ls `pwd`/libp2p/{*,**/*}.nim + lcov --extract coverage/coverage.info `pwd`/libp2p/{*,**/*}.nim --output-file coverage/coverage.f.info export COV_UUID=`cksum <<< "${{ matrix.test-program }} $NIM_OPTIONS" | cut -f 1 -d ' '` genhtml coverage/coverage.f.info --output-directory coverage/$COV_UUID-output echo ${{ matrix.test-program }} > coverage/$COV_UUID-nim_options.txt @@ -67,7 +69,9 @@ jobs: nim c $NIM_OPTIONS -r ${{ matrix.test-program }} cd nimcache; rm *.c; cd .. lcov --capture --directory nimcache --output-file coverage/coverage.info - lcov --extract coverage/coverage.info `pwd`/libp2p/* `pwd`/libp2p/**/* `pwd`/libp2p/**/**/* --output-file coverage/coverage.f.info + shopt -s globstar + ls `pwd`/libp2p/{*,**/*}.nim + lcov --extract coverage/coverage.info `pwd`/libp2p/{*,**/*}.nim --output-file coverage/coverage.f.info export COV_UUID=`cksum <<< "${{ matrix.test-program }} $NIM_OPTIONS" | cut -f 1 -d ' '` genhtml coverage/coverage.f.info --output-directory coverage/$COV_UUID-output echo ${{ matrix.test-program }} > coverage/$COV_UUID-nim_options.txt @@ -106,7 +110,9 @@ jobs: nim c $NIM_OPTIONS -r ${{ matrix.test-program }} cd nimcache; rm *.c; cd .. lcov --capture --directory nimcache --output-file coverage/coverage.info - lcov --extract coverage/coverage.info `pwd`/libp2p/* `pwd`/libp2p/**/* `pwd`/libp2p/**/**/* --output-file coverage/coverage.f.info + shopt -s globstar + ls `pwd`/libp2p/{*,**/*}.nim + lcov --extract coverage/coverage.info `pwd`/libp2p/{*,**/*}.nim --output-file coverage/coverage.f.info export COV_UUID=`cksum <<< "${{ matrix.test-program }} $NIM_OPTIONS" | cut -f 1 -d ' '` genhtml coverage/coverage.f.info --output-directory coverage/$COV_UUID-output echo ${{ matrix.test-program }} > coverage/$COV_UUID-nim_options.txt