-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrosencrantz.nimble
48 lines (37 loc) · 962 Bytes
/
rosencrantz.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
mode = ScriptMode.Verbose
packageName = "rosencrantz"
version = "0.4.3"
author = "Andrea Ferretti"
description = "Web server DSL"
license = "Apache2"
skipDirs = @["tests", "htmldocs"]
skipFiles = @["test.sh"]
requires "nim >= 0.19.0"
--forceBuild
proc configForTests() =
--hints: off
--linedir: on
--stacktrace: on
--linetrace: on
--debuginfo
--path: "."
task server, "compile server":
configForTests()
switch("out", "tests/rosencrantz")
setCommand "c", "tests/server.nim"
task client, "run client":
configForTests()
--run
setCommand "c", "tests/client.nim"
task gendoc, "generate documentation":
--docSeeSrcUrl: https://github.com/andreaferretti/rosencrantz/blob/master
--project
setCommand "doc", "rosencrantz"
task todo, "run todo example":
--path: "."
--run
setCommand "c", "tests/todo.nim"
task tests, "run tests":
exec "./test.sh"
task test, "run tests":
setCommand "tests"