fix nimble

This commit is contained in:
Jaremy Creechley 2023-07-10 17:42:26 -07:00
parent 7bba539cc2
commit 64a3953d3e
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -9,20 +9,20 @@ skipDirs = @["tests"]
# TODO: fix versions after tagging the version in the corresponding package # TODO: fix versions after tagging the version in the corresponding package
# Dependencies # Dependencies
requires "nim >= 1.2.0", requires "nim >= 1.2.0"
"secp256k1#b3f38e2795e805743b299dc5d96d332db375b520", # >= 0.5.2 & < 0.6.0 requires "secp256k1#b3f38e2795e805743b299dc5d96d332db375b520" # >= 0.5.2 & < 0.6.0
"protobufserialization#27b400fdf3bd8ce7120ca66fc1de39d3f1a5804a", # >= 0.2.0 & < 0.3.0 requires "protobufserialization#27b400fdf3bd8ce7120ca66fc1de39d3f1a5804a" # >= 0.2.0 & < 0.3.0
"nimcrypto == 0.5.4", requires "nimcrypto == 0.5.4"
"bearssl#head", requires "bearssl#head"
"chronicles >= 0.10.2 & < 0.11.0", requires "chronicles >= 0.10.2 & < 0.11.0"
"chronos#1394c9e04957928afc1db33d2e0965cfb677a1e0", # >= 3.0.11 & < 3.1.0 requires "chronos#1394c9e04957928afc1db33d2e0965cfb677a1e0" # >= 3.0.11 & < 3.1.0
"libp2p#unstable", requires "libp2p#unstable"
"metrics", requires "metrics"
"stew#head", requires "stew#head"
"stint", requires "stint"
"asynctest >= 0.3.1 & < 0.4.0", requires "asynctest >= 0.3.1 & < 0.4.0"
"https://github.com/status-im/nim-datastore#head", requires "https://github.com/status-im/nim-datastore#head"
"questionable" requires "questionable"
task coverage, "generates code coverage report": task coverage, "generates code coverage report":
var (output, exitCode) = gorgeEx("which lcov") var (output, exitCode) = gorgeEx("which lcov")
@ -50,7 +50,7 @@ task coverage, "generates code coverage report":
echo " *****************************************************************" echo " *****************************************************************"
echo "" echo ""
exec(nimbleExe & " --verbose test --opt:speed -d:debug --verbosity:0 --hints:off --lineDir:on -d:chronicles_log_level=INFO --nimcache:nimcache --passC:-fprofile-arcs --passC:-ftest-coverage --passL:-fprofile-arcs --passL:-ftest-coverage") exec("nimble --verbose test --opt:speed -d:debug --verbosity:0 --hints:off --lineDir:on -d:chronicles_log_level=INFO --nimcache:nimcache --passC:-fprofile-arcs --passC:-ftest-coverage --passL:-fprofile-arcs --passL:-ftest-coverage")
exec("cd nimcache; rm *.c; cd ..") exec("cd nimcache; rm *.c; cd ..")
mkDir("coverage") mkDir("coverage")
exec("lcov --capture --directory nimcache --output-file coverage/coverage.info") exec("lcov --capture --directory nimcache --output-file coverage/coverage.info")