testes.nimble 849 B

123456789101112131415161718192021222324
  1. version = "1.0.0"
  2. author = "disruptek"
  3. description = "a cure for salty testes"
  4. license = "MIT"
  5. #requires "cligen >= 0.9.41 & <= 0.9.45"
  6. #requires "bump >= 1.8.18 & < 2.0.0"
  7. requires "https://github.com/disruptek/grok >= 0.0.4 & < 1.0.0"
  8. requires "https://github.com/juancarlospaco/nim-bytes2human"
  9. bin = @["testes"] # build the binary for basic test running
  10. installExt = @["nim"] # we need to install testes.nim also
  11. skipDirs = @["tests"] # so stupid... who doesn't want tests?
  12. task test, "run tests for ci":
  13. exec "nim c --run testes.nim"
  14. task demo, "produce a demo":
  15. when (NimMajor, NimMinor) != (1, 0):
  16. echo "due to nim bug #16307, use nim-1.0"
  17. quit 1
  18. exec """demo docs/demo.svg "nim c --out=\$1 examples/balls.nim""""
  19. exec """demo docs/clean.svg "nim c --define:danger --out=\$1 tests/testicles.nim""""