Remove nimgen dependency, enable tmath test

This commit is contained in:
Ganesh Viswanathan 2019-01-16 17:13:15 -06:00
commit 114d502f13
17 changed files with 231 additions and 54 deletions

View file

@ -10,7 +10,7 @@ installDirs = @["nimterop"]
# Dependencies
requires "nim >= 0.19.0", "treesitter >= 0.1.0", "treesitter_c >= 0.1.0", "treesitter_cpp >= 0.1.0", "regex >= 0.10.0", "cligen >= 0.9.17"
requires "nim >= 0.19.0", "regex >= 0.10.0", "cligen >= 0.9.17"
proc execCmd(cmd:string)=
echo cmd
@ -20,13 +20,6 @@ task test, "Test":
execCmd "nim c -r tests/tnimterop_c.nim"
execCmd "nim cpp -r tests/tnimterop_c.nim"
execCmd "nim cpp -r tests/tnimterop_cpp.nim"
# when defined(windows):
# execCmd "nim c -r tests/tmath.nim"
# execCmd "nim cpp -r tests/tmath.nim"
task installWithDeps, "install dependencies":
for a in ["http://github.com/genotrance/nimtreesitter?subdir=treesitter",
"http://github.com/genotrance/nimtreesitter?subdir=treesitter_c",
"http://github.com/genotrance/nimtreesitter?subdir=treesitter_cpp",]:
execCmd "nimble install -y " & a
execCmd "nimble install -y"
when defined(windows):
execCmd "nim c -r tests/tmath.nim"
execCmd "nim cpp -r tests/tmath.nim"