-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnesm.nimble
More file actions
22 lines (17 loc) · 746 Bytes
/
Copy pathnesm.nimble
File metadata and controls
22 lines (17 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version = "0.4.10"
author = "xomachine (Fomichev Dmitriy)"
description = "NESM stands for Nim's Easy Serialization Macro. The macro allowing generation of serialization functions by one line of code!"
license = "MIT"
skipDirs = @["tests", "demos"]
requires "nim >= 0.14.2"
from strutils import endsWith
task tests, "Run autotests":
let test_files = listFiles("tests")
for target in ["c", "cpp"]:
echo "== Testing target " & target & " =="
for file in test_files:
if file.endsWith(".nim"):
exec("nim " & target & " --run -d:nimOldCaseObjects -d:debug -o:tmpfile -p:" & thisDir() & " " & file)
rmFile("tmpfile")
task docs, "Build documentation":
exec("nim doc --project nesm.nim")