-
Notifications
You must be signed in to change notification settings - Fork 7
/
balls.nimble
21 lines (17 loc) · 950 Bytes
/
balls.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version = "6.0.0"
author = "disruptek"
description = "a unittest framework with balls 🔴🟡🟢"
license = "MIT"
requires "https://github.com/disruptek/ups >= 0.4.0 & < 1.0.0"
requires "https://github.com/haltcase/glob#64f71af2fa4572c2bdf8987a56a427c1d88fc34f"
requires "https://github.com/disruptek/insideout >= 1.0.0 & < 2.0.0"
bin = @["balls"] # build the binary for basic test running
installExt = @["nim"] # we need to install balls.nim also
skipDirs = @["tests"] # so stupid... who doesn't want tests?
#installFiles = @["balls.nim"] # https://github.com/nim-lang/Nim/issues/16661
task demo, "produce a demo":
exec "nim c --gc:arc --define:release balls.nim"
exec """demo docs/demo.svg "nim c --out=\$1 examples/fails.nim""""
exec """demo docs/clean.svg "nim c --define:danger --out=\$1 tests/test.nim""""
exec "nim c --define:release --define:ballsDry balls.nim"
exec """demo docs/runner.svg "balls""""