-
Notifications
You must be signed in to change notification settings - Fork 7
/
shell.nimble
29 lines (23 loc) · 939 Bytes
/
shell.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
# Package
version = "0.6.0"
author = "Vindaar"
description = "A Nim mini DSL to execute shell commands"
license = "MIT"
# Dependencies
requires "nim >= 0.19.0"
task test, "executes the tests":
exec "nim c -d:debugShell -r tests/tShell.nim"
exec "nim c -r tests/tException.nim"
# execute using NimScript as well
exec "nim e -d:debugShell -r tests/tNimScript.nims"
# and execute PWD test, by running the nims file in another dir,
# which itself calls the test
when not defined(windows):
exec "cd tests/anotherDir && nim e -r runAnotherTest.nims"
exec "nim c -r tests/tExpect.nim"
task travis, "executes the tests on travis":
exec "nim c -d:debugShell -d:travisCI -r tests/tShell.nim"
# execute using NimScript as well
exec "nim e -d:debugShell -d:travisCI -r tests/tNimScript.nims"
when not defined(windows):
exec "cd tests/anotherDir && nim e -d:travisCI -r runAnotherTest.nims"