Skip to content

Commit ae131a1

Browse files
hendrikgitoprypin
authored andcommitted
use nimscripts listFiles instead of bash loop
so that test task can run on windows
1 parent 9d88524 commit ae131a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docopt.nimble

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ requires "nim >= 0.15.0"
1010

1111
task test, "Test":
1212
exec "nim compile --verbosity:0 --run test/test"
13-
exec "for f in examples/*.nim; do nim compile --verbosity:0 --hints:off \"$f\" || exit; done"
13+
for f in listFiles("examples"):
14+
if f[^4..^1] == ".nim": exec "nim compile --verbosity:0 --hints:off " & f

0 commit comments

Comments
 (0)