-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgun.nimble
36 lines (31 loc) · 1.43 KB
/
gun.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
version = "0.0.1"
author = "disruptek"
description = "secure decentralized graph database"
license = "MIT"
requires "https://github.com/disruptek/criterion < 1.0.0"
requires "https://github.com/disruptek/frosty < 1.0.0"
requires "https://github.com/disruptek/gram < 1.0.0"
requires "https://github.com/guzba/supersnappy < 2.0.0 & >= 1.1.0"
requires "https://github.com/pragmagic/uuids 0.1.10"
requires "https://github.com/Araq/packedjson < 1.0.0 & >= 0.2.1"
requires "https://github.com/disruptek/testes < 1.0.0"
requires "https://github.com/treeform/ws < 1.0.0 & >= 0.4.3"
proc execCmd(cmd: string) =
echo "exec: " & cmd
exec cmd
proc execTest(test: string) =
when getEnv("GITHUB_ACTIONS", "false") != "true":
execCmd "nim c -r -f " & test
when (NimMajor, NimMinor) >= (1, 2):
execCmd "nim c -d:danger --gc:arc -r -f " & test
else:
execCmd "nim c -d:danger -r -f " & test
execCmd "nim cpp -d:danger -r -f " & test
when (NimMajor, NimMinor) >= (1, 2):
execCmd "nim c --useVersion:1.0 -d:danger -r -f " & test
execCmd "nim c -d:danger --gc:arc -r -f " & test
execCmd "nim cpp -d:danger --gc:arc -r -f " & test
task test, "run tests for ci":
execTest("tests/test.nim")
task bench, "generate benchmark":
exec "termtosvg docs/bench.svg --max-frame-duration=3000 --loop-delay=3000 --screen-geometry=80x30 --template=window_frame_powershell --command=\"nim c --gc:arc --define:danger -r tests/bench.nim\""