-
Notifications
You must be signed in to change notification settings - Fork 2
/
hcparse.nimble
35 lines (28 loc) · 1.07 KB
/
hcparse.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
# Package
version = "0.1.2"
author = "haxscramper"
description = "High-level nim wrapper for C/C++ parsing"
license = "Apache-2.0"
srcDir = "src"
requires "nim >= 1.6.0"
requires "hnimast"
requires "htsparse >= 0.1.10"
requires "https://github.com/haxscramper/frosty#use-cast"
requires "hmisc >= 0.11.5"
import std/[os, strutils]
task test, "Run tests":
let dir = currentSourcePath().parentDir() / "tests"
for file in listFiles(dir):
let (_, name, _) = splitFile(file)
if name.startsWith("t") and file.endsWith(".nim"):
echo "[[[[[[[[[[ file run start"
echo file
exec "nim r " & file
echo "]]]]]]]]]] file run done"
# exec "nim r tests/runall.nim test " & currentSourcePath() & " --parse-errors=false"
task docgen, "Generate documentation":
exec "nim c -r tests/runall.nim doc " & currentSourcePath()
task push, "Execute checks and push ":
exec "nim r tests/runall.nim push " & currentSourcePath()
task newversion, "Tag new version and push it to git":
exec "nim r tests/runall.nim newversion " & currentSourcePath()