* Fix walkDir, cCompile mode, add tsoloud, fix void *
* No tsoloud on Travis Linux
This commit is contained in:
genotrance 2019-01-17 20:26:51 -06:00 • committed by GitHub
commit 09d9794bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 99 additions and 14 deletions

View file

@ -12,10 +12,14 @@ installDirs = @["nimterop"]
requires "nim >= 0.19.0", "regex >= 0.10.0", "cligen >= 0.9.17"
proc execCmd(cmd:string)=
proc execCmd(cmd: string) =
echo cmd
exec cmd
proc tsoloud() =
execCmd "nim c -r tests/tsoloud.nim"
execCmd "nim cpp -r tests/tsoloud.nim"
task test, "Test":
execCmd "nim c -r tests/tnimterop_c.nim"
execCmd "nim cpp -r tests/tnimterop_c.nim"
@ -23,3 +27,9 @@ task test, "Test":
when defined(windows):
execCmd "nim c -r tests/tmath.nim"
execCmd "nim cpp -r tests/tmath.nim"
when not defined(OSX):
when defined(Windows):
tsoloud()
else:
if not existsEnv("TRAVIS"):
tsoloud()