2018-11-10 00:16:09 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
|
|
|
packageName = "json_serialization"
|
|
|
|
version = "0.1.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
2018-11-11 11:45:34 +00:00
|
|
|
description = "Flexible JSON serialization not relying on run-time type information"
|
2018-11-10 00:16:09 +00:00
|
|
|
license = "Apache License 2.0"
|
|
|
|
skipDirs = @["tests"]
|
|
|
|
|
|
|
|
requires "nim >= 0.17.0",
|
2018-12-17 23:01:06 +00:00
|
|
|
"serialization",
|
|
|
|
"std_shims"
|
2018-11-10 00:16:09 +00:00
|
|
|
|
2019-03-13 23:39:10 +00:00
|
|
|
import ospaths, strutils
|
|
|
|
|
|
|
|
task test, "Run tests":
|
|
|
|
for filename in listFiles("tests"):
|
|
|
|
if filename.startsWith("tests" / "test_") and filename.endsWith(".nim"):
|
|
|
|
exec "nim c -r " & filename
|
|
|
|
rmFile filename[0..^5]
|
|
|
|
|