nwaku/vendor/nim-json-serialization/json_serialization.nimble

28 lines
755 B
Nim

mode = ScriptMode.Verbose
packageName = "json_serialization"
version = "0.1.0"
author = "Status Research & Development GmbH"
description = "Flexible JSON serialization not relying on run-time type information"
license = "Apache License 2.0"
skipDirs = @["tests"]
requires "nim >= 0.17.0",
"serialization",
"stew"
proc test(env, path: string) =
# Compilation language is controlled by TEST_LANG
var lang = "c"
if existsEnv"TEST_LANG":
lang = getEnv"TEST_LANG"
if not dirExists "build":
mkDir "build"
exec "nim " & lang & " " & env &
" -r --hints:off --warnings:off " & path
task test, "Run all tests":
test "--threads:off", "tests/test_all"
test "--threads:on", "tests/test_all"