2018-01-22 22:23:07 +00:00
|
|
|
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"]
|
|
|
|
|
2018-04-03 16:09:09 +00:00
|
|
|
requires "nim >= 0.18.1",
|
2018-05-01 08:38:38 +00:00
|
|
|
"https://github.com/cheatfate/nimcrypto",
|
2018-04-11 15:12:28 +00:00
|
|
|
"https://github.com/status-im/nim-rlp",
|
2018-05-07 12:41:54 +00:00
|
|
|
"https://github.com/status-im/nim-stint",
|
2018-05-02 15:01:10 +00:00
|
|
|
"https://github.com/status-im/nim-eth-p2p",
|
|
|
|
"https://github.com/status-im/nim-eth-keyfile"
|
2018-01-30 10:51:13 +00:00
|
|
|
|
2018-05-07 12:41:54 +00:00
|
|
|
proc test(name: string, lang = "c") =
|
2018-04-03 16:09:09 +00:00
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
|
|
|
if not dirExists "nimcache":
|
|
|
|
mkDir "nimcache"
|
|
|
|
--run
|
|
|
|
--nimcache: "nimcache"
|
|
|
|
switch("out", ("./build/" & name))
|
|
|
|
setCommand lang, "tests/" & name & ".nim"
|
2018-01-29 17:40:22 +00:00
|
|
|
|
2018-04-03 16:09:09 +00:00
|
|
|
task test, "Run tests":
|
|
|
|
test "all_tests"
|