38 lines
1.1 KiB
Nim
38 lines
1.1 KiB
Nim
# nim-graphql
|
|
# Copyright (c) 2021 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
|
# at your option.
|
|
# This file may not be copied, modified, or distributed except according to
|
|
# those terms.
|
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
packageName = "graphql"
|
|
version = "0.1.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "GraphQL parser, server and client implementation"
|
|
license = "Apache License 2.0"
|
|
skipDirs = @["tests", "resources", "fuzzer", "docs"]
|
|
|
|
requires "nim >= 1.2.0",
|
|
"faststreams",
|
|
"stew",
|
|
"json_serialization"
|
|
|
|
proc test(env, path: string) =
|
|
# Compilation language is controlled by TEST_LANG
|
|
var lang = "c"
|
|
if existsEnv"TEST_LANG":
|
|
lang = getEnv"TEST_LANG"
|
|
|
|
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"
|
|
test "--threads:off -d:release", "tests/test_all"
|
|
test "--threads:on -d:release", "tests/test_all"
|