aboutsummaryrefslogtreecommitdiff
path: root/nimterop.nimble
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-01-17 20:20:50 -0600
committerGanesh Viswanathan <dev@genotrance.com>2019-01-17 20:20:50 -0600
commit79409d27b262157b1f9714afc9c327dab0f21d0d (patch)
tree6b0e8c3ef6ce6ad8f073bcc65d375c0230aa0c56 /nimterop.nimble
parent96e0eea609bb7905943022305564d6c1c77c4e1c (diff)
downloadnimterop-walkdir.tar.gz
nimterop-walkdir.zip
No tsoloud on Travis Linuxwalkdir
Diffstat (limited to 'nimterop.nimble')
-rw-r--r--nimterop.nimble13
1 files changed, 10 insertions, 3 deletions
diff --git a/nimterop.nimble b/nimterop.nimble
index 368ec29..11d8342 100644
--- a/nimterop.nimble
+++ b/nimterop.nimble
@@ -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"
@@ -24,5 +28,8 @@ task test, "Test":
execCmd "nim c -r tests/tmath.nim"
execCmd "nim cpp -r tests/tmath.nim"
when not defined(OSX):
- execCmd "nim c -r tests/tsoloud.nim"
- execCmd "nim cpp -r tests/tsoloud.nim" \ No newline at end of file
+ when defined(Windows):
+ tsoloud()
+ else:
+ if not existsEnv("TRAVIS"):
+ tsoloud() \ No newline at end of file