nim-chronos/chronos.nimble

30 lines
818 B
Plaintext
Raw Normal View History

packageName = "chronos"
version = "2.6.1"
2018-05-16 08:22:34 +00:00
author = "Status Research & Development GmbH"
description = "Chronos"
2018-05-16 08:22:34 +00:00
license = "Apache License 2.0 or MIT"
2019-02-06 15:24:57 +00:00
skipDirs = @["tests"]
2018-05-16 08:22:34 +00:00
### Dependencies
requires "nim > 1.2.0",
"stew",
2021-01-30 18:17:22 +00:00
"bearssl",
2021-02-02 10:51:48 +00:00
"httputils"
2018-05-16 08:22:34 +00:00
task test, "Run all tests":
var commands = @[
"nim c -r -d:useSysAssert -d:useGcAssert tests/",
"nim c -r -d:chronosStackTrace tests/",
"nim c -r -d:release tests/",
"nim c -r -d:release -d:chronosFutureTracking tests/"
]
when (NimMajor, NimMinor) >= (1, 5):
commands.add "nim c -r --gc:orc -d:chronosFutureTracking -d:release -d:chronosStackTrace tests/"
for testname in ["testall"]:
for cmd in commands:
let curcmd = cmd & testname
echo "\n" & curcmd
exec curcmd