balls.nimble 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. version = "3.4.1"
  2. author = "disruptek"
  3. description = "a unittest framework with balls 🔴🟡🟢"
  4. license = "MIT"
  5. # requires newTreeFrom
  6. requires "https://github.com/disruptek/grok >= 0.5.0 & < 1.0.0"
  7. requires "https://github.com/disruptek/ups < 1.0.0"
  8. requires "https://github.com/planetis-m/sync#810bd2d"
  9. #requires "https://github.com/c-blake/cligen < 2.0.0"
  10. bin = @["balls"] # build the binary for basic test running
  11. installExt = @["nim"] # we need to install balls.nim also
  12. skipDirs = @["tests"] # so stupid... who doesn't want tests?
  13. #installFiles = @["balls.nim"] # https://github.com/nim-lang/Nim/issues/16661
  14. task test, "run tests for ci":
  15. when defined(windows):
  16. exec "balls.cmd"
  17. else:
  18. exec "balls"
  19. task demo, "produce a demo":
  20. exec "nim c --define:release balls.nim"
  21. when (NimMajor, NimMinor) != (1, 0):
  22. echo "due to nim bug #16307, use nim-1.0"
  23. quit 1
  24. exec """demo docs/demo.svg "nim c --out=\$1 examples/fails.nim""""
  25. exec """demo docs/clean.svg "nim c --define:danger -f --out=\$1 tests/test.nim""""
  26. exec "nim c --define:release --define:ballsDry balls.nim"
  27. exec """demo docs/runner.svg "balls""""