33 lines
912 B
Nim
33 lines
912 B
Nim
mode = ScriptMode.Verbose
|
|
|
|
packageName = "nimbus"
|
|
version = "0.1.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "An Ethereum 2.0 Sharding Client for Resource-Restricted Devices"
|
|
license = "Apache License 2.0"
|
|
skipDirs = @["tests", "examples"]
|
|
bin = @["nimbus/nimbus"]
|
|
|
|
requires "nim >= 0.18.1",
|
|
"nimcrypto",
|
|
"rlp",
|
|
"stint",
|
|
"https://github.com/status-im/nim-eth-common",
|
|
"https://github.com/status-im/nim-eth-rpc",
|
|
"https://github.com/status-im/nim-asyncdispatch2",
|
|
"eth_p2p",
|
|
"eth_keyfile"
|
|
|
|
proc test(name: string, lang = "c") =
|
|
if not dirExists "build":
|
|
mkDir "build"
|
|
if not dirExists "nimcache":
|
|
mkDir "nimcache"
|
|
--run
|
|
--nimcache: "nimcache"
|
|
switch("out", ("./build/" & name))
|
|
setCommand lang, "tests/" & name & ".nim"
|
|
|
|
task test, "Run tests":
|
|
test "all_tests"
|