important_packages.nim 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. ##[
  2. ## note 1
  3. `useHead` should ideally be used as the default but lots of packages (e.g. `chronos`)
  4. don't have release tags (or have really old ones compared to HEAD), making it
  5. impossible to test them reliably here.
  6. packages listed here should ideally have regularly updated release tags, so that:
  7. * we're testing recent versions of the package
  8. * the version that's tested is stable enough even if HEAD may occasionally break
  9. ## note 2: D20210308T165435:here
  10. nimble packages should be testable as follows:
  11. git clone $url $dir && cd $dir
  12. NIMBLE_DIR=$TMP_NIMBLE_DIR XDG_CONFIG_HOME= nimble install --depsOnly -y
  13. NIMBLE_DIR=$TMP_NIMBLE_DIR XDG_CONFIG_HOME= nimble test
  14. if this fails (e.g. nimcrypto), it could be because a package lacks a `tests/nim.cfg` with `--path:..`,
  15. so the above commands would've worked by accident with `nimble install` but not with `nimble install --depsOnly`.
  16. When this is the case, a workaround is to test this package here by adding `--path:$srcDir` on the test `cmd`.
  17. ]##
  18. type NimblePackage* = object
  19. name*, cmd*, url*: string
  20. useHead*: bool
  21. allowFailure*: bool
  22. ## When true, we still run the test but the test is allowed to fail.
  23. ## This is useful for packages that currently fail but that we still want to
  24. ## run in CI, e.g. so that we can monitor when they start working again and
  25. ## are reminded about those failures without making CI fail for unrelated PRs.
  26. var packages*: seq[NimblePackage]
  27. proc pkg(name: string; cmd = "nimble test"; url = "", useHead = true, allowFailure = false) =
  28. packages.add NimblePackage(name: name, cmd: cmd, url: url, useHead: useHead, allowFailure: allowFailure)
  29. pkg "alea"
  30. pkg "argparse"
  31. pkg "arraymancer", "nim c tests/tests_cpu.nim"
  32. pkg "ast_pattern_matching", "nim c -r tests/test1.nim"
  33. pkg "asyncftpclient", "nimble compileExample"
  34. pkg "asyncthreadpool", "nimble test --mm:refc"
  35. pkg "awk"
  36. pkg "bigints"
  37. pkg "binaryheap", "nim c -r binaryheap.nim"
  38. pkg "BipBuffer"
  39. pkg "blscurve", allowFailure = true # pending https://github.com/status-im/nim-blscurve/issues/39
  40. pkg "bncurve"
  41. pkg "brainfuck", "nim c -d:release -r tests/compile.nim"
  42. pkg "bump", "nim c --gc:arc --path:. -r tests/tbump.nim", "https://github.com/disruptek/bump"
  43. pkg "c2nim", "nim c testsuite/tester.nim"
  44. pkg "cascade"
  45. pkg "cello", url = "https://github.com/nim-lang/cello", useHead = true
  46. pkg "chroma"
  47. pkg "chronicles", "nim c -o:chr -r chronicles.nim", url = "https://github.com/nim-lang/nim-chronicles"
  48. pkg "chronos", "nim c -r -d:release tests/testall", url = "https://github.com/nim-lang/nim-chronos"
  49. pkg "cligen", "nim c --path:. -r cligen.nim"
  50. pkg "combparser", "nimble test --gc:orc"
  51. pkg "compactdict"
  52. pkg "comprehension", "nimble test", "https://github.com/alehander92/comprehension"
  53. pkg "criterion", allowFailure = true # pending https://github.com/disruptek/criterion/issues/3 (wrongly closed)
  54. pkg "datamancer"
  55. pkg "dashing", "nim c tests/functional.nim"
  56. pkg "delaunay", url = "https://github.com/nim-lang/DelaunayNim", useHead = true
  57. pkg "docopt"
  58. pkg "easygl", "nim c -o:egl -r src/easygl.nim", "https://github.com/jackmott/easygl"
  59. pkg "elvis"
  60. pkg "fidget"
  61. pkg "fragments", "nim c -r fragments/dsl.nim", allowFailure = true # pending https://github.com/nim-lang/packages/issues/2115
  62. pkg "fusion"
  63. pkg "gara"
  64. pkg "glob"
  65. pkg "ggplotnim", "nim c -d:noCairo -r tests/tests.nim"
  66. pkg "gittyup", "nimble test", "https://github.com/disruptek/gittyup", allowFailure = true
  67. pkg "gnuplot", "nim c gnuplot.nim"
  68. # pkg "gram", "nim c -r --gc:arc --define:danger tests/test.nim", "https://github.com/disruptek/gram"
  69. # pending https://github.com/nim-lang/Nim/issues/16509
  70. pkg "hts", "nim c -o:htss src/hts.nim"
  71. pkg "httpauth"
  72. pkg "illwill", "nimble examples"
  73. pkg "inim"
  74. pkg "itertools", "nim doc src/itertools.nim"
  75. pkg "iterutils"
  76. pkg "jstin"
  77. pkg "karax", "nim c -r tests/tester.nim"
  78. pkg "kdtree", "nimble test -d:nimLegacyRandomInitRand", "https://github.com/jblindsay/kdtree"
  79. pkg "loopfusion"
  80. pkg "lockfreequeues"
  81. pkg "macroutils"
  82. pkg "manu"
  83. pkg "markdown"
  84. pkg "measuremancer", "nimble testDeps; nimble -y test"
  85. pkg "memo"
  86. pkg "msgpack4nim", "nim c -r tests/test_spec.nim"
  87. pkg "nake", "nim c nakefile.nim"
  88. pkg "neo", "nim c -d:blas=openblas --mm:refc tests/all.nim"
  89. pkg "nesm", "nimble tests", "https://github.com/nim-lang/NESM", useHead = true
  90. pkg "netty"
  91. pkg "nico", allowFailure = true
  92. pkg "nicy", "nim c -r src/nicy.nim"
  93. pkg "nigui", "nim c -o:niguii -r src/nigui.nim"
  94. pkg "nimcrypto", "nim r --path:. tests/testall.nim" # `--path:.` workaround needed, see D20210308T165435
  95. pkg "NimData", "nim c -o:nimdataa src/nimdata.nim"
  96. pkg "nimes", "nim c src/nimes.nim"
  97. pkg "nimfp", "nim c -o:nfp -r src/fp.nim"
  98. pkg "nimgame2", "nim c --mm:refc nimgame2/nimgame.nim"
  99. # XXX Doesn't work with deprecated 'randomize', will create a PR.
  100. pkg "nimgen", "nim c -o:nimgenn -r src/nimgen/runcfg.nim"
  101. pkg "nimlsp"
  102. pkg "nimly", "nim c -r tests/test_readme_example.nim"
  103. pkg "nimongo", "nimble test_ci", allowFailure = true
  104. pkg "nimph", "nimble test", "https://github.com/disruptek/nimph", allowFailure = true
  105. pkg "nimPNG", useHead = true
  106. pkg "nimpy", "nim c -r tests/nimfrompy.nim"
  107. pkg "nimquery"
  108. pkg "nimsl"
  109. pkg "nimsvg"
  110. pkg "nimterop", "nimble minitest"
  111. pkg "nimwc", "nim c nimwc.nim", allowFailure = true
  112. pkg "nimx", "nim c --threads:on test/main.nim", allowFailure = true
  113. pkg "nitter", "nim c src/nitter.nim", "https://github.com/zedeus/nitter"
  114. pkg "norm", "testament r tests/sqlite/trows.nim", allowFailure = true
  115. pkg "npeg", "nimble testarc"
  116. pkg "numericalnim", "nimble nimCI"
  117. pkg "optionsutils"
  118. pkg "ormin", "nim c -o:orminn ormin.nim"
  119. pkg "parsetoml"
  120. pkg "patty"
  121. pkg "pixie"
  122. pkg "plotly", "nim c examples/all.nim"
  123. pkg "pnm"
  124. pkg "polypbren"
  125. pkg "prologue", "nimble tcompile"
  126. pkg "protobuf", "nim c -o:protobuff -r src/protobuf.nim"
  127. pkg "pylib"
  128. pkg "rbtree"
  129. pkg "react", "nimble example"
  130. pkg "regex", "nim c src/regex"
  131. pkg "result", "nim c -r result.nim"
  132. pkg "RollingHash", "nim c -r tests/test_cyclichash.nim"
  133. pkg "rosencrantz", "nim c -o:rsncntz -r rosencrantz.nim"
  134. pkg "sdl1", "nim c -r src/sdl.nim"
  135. pkg "sdl2_nim", "nim c -r sdl2/sdl.nim"
  136. pkg "sigv4", "nim c --gc:arc -r sigv4.nim", "https://github.com/disruptek/sigv4"
  137. pkg "sim"
  138. pkg "smtp", "nimble compileExample"
  139. pkg "snip", "nimble test", "https://github.com/genotrance/snip"
  140. pkg "stew"
  141. pkg "stint", "nim r stint.nim"
  142. pkg "strslice"
  143. pkg "strunicode", "nim c -r --mm:refc src/strunicode.nim"
  144. pkg "supersnappy"
  145. pkg "synthesis"
  146. pkg "taskpools"
  147. pkg "telebot", "nim c -o:tbot -r src/telebot.nim"
  148. pkg "tempdir"
  149. pkg "templates"
  150. pkg "tensordsl", "nim c -r --mm:refc tests/tests.nim", "https://krux02@bitbucket.org/krux02/tensordslnim.git"
  151. pkg "terminaltables", "nim c src/terminaltables.nim"
  152. pkg "termstyle", "nim c -r termstyle.nim"
  153. pkg "timeit"
  154. pkg "timezones"
  155. pkg "tiny_sqlite"
  156. pkg "unicodedb", "nim c -d:release -r tests/tests.nim"
  157. pkg "unicodeplus", "nim c -d:release -r tests/tests.nim"
  158. pkg "unpack"
  159. pkg "weave", "nimble test_gc_arc", useHead = true
  160. pkg "websocket", "nim c websocket.nim"
  161. pkg "winim", "nim c winim.nim"
  162. pkg "with"
  163. pkg "ws", allowFailure = true
  164. pkg "yaml", "nim c -r test/tserialization.nim"
  165. pkg "zero_functional", "nim c -r -d:nimNoLentIterators test.nim"
  166. pkg "zippy"