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