nim-presto/presto.nimble

23 lines
585 B
Plaintext
Raw Normal View History

2021-03-02 13:32:20 +00:00
mode = ScriptMode.Verbose
packageName = "presto"
version = "0.0.4"
2021-03-02 13:32:20 +00:00
author = "Status Research & Development GmbH"
description = "REST API implementation"
license = "MIT"
skipDirs = @["tests", "examples"]
requires "nim >= 1.2.0",
"chronos >= 3.0.9",
2021-03-02 13:32:20 +00:00
"chronicles",
"stew"
proc runTest(filename: string) =
var excstr: string = "nim c -r --hints:off --skipParentCfg " & getEnv("NIMFLAGS") & " "
2021-03-02 13:32:20 +00:00
excstr.add("tests/" & filename)
exec excstr
rmFile "tests/" & filename.toExe
task test, "Runs rest tests":
runTest("testall")