important_packages.nim 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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
  40. pkg "bncurve"
  41. pkg "brainfuck", "nim c -d:release -r tests/compile.nim"
  42. pkg "bump", "nim c --mm:arc --path:. -r tests/tbump.nim", "https://github.com/disruptek/bump", allowFailure = true
  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 "checksums"
  47. pkg "chroma"
  48. pkg "chronicles", "nim c -o:chr -r chronicles.nim"
  49. pkg "chronos", "nim c -r -d:release tests/testall"
  50. pkg "cligen", "nim c --path:. -r cligen.nim"
  51. pkg "combparser", "nimble test --mm:orc"
  52. pkg "compactdict"
  53. pkg "comprehension", "nimble test", "https://github.com/alehander92/comprehension"
  54. pkg "constantine", "nimble make_lib"
  55. pkg "cowstrings"
  56. pkg "criterion", allowFailure = true # needs testing binary
  57. pkg "datamancer"
  58. pkg "dashing", "nim c tests/functional.nim"
  59. pkg "delaunay"
  60. pkg "dnsclient", allowFailure = true # super fragile
  61. pkg "docopt"
  62. pkg "dotenv"
  63. # when defined(linux): pkg "drchaos"
  64. pkg "easygl", "nim c -o:egl -r src/easygl.nim", "https://github.com/jackmott/easygl"
  65. pkg "elvis"
  66. pkg "faststreams"
  67. pkg "fidget"
  68. pkg "fragments", "nim c -r fragments/dsl.nim", allowFailure = true # pending https://github.com/nim-lang/packages/issues/2115
  69. pkg "fusion"
  70. pkg "gara"
  71. pkg "glob"
  72. pkg "ggplotnim", "nim c -d:noCairo -r tests/tests.nim"
  73. pkg "gittyup", "nimble test", "https://github.com/disruptek/gittyup", allowFailure = true
  74. pkg "gnuplot", "nim c gnuplot.nim"
  75. # pkg "gram", "nim c -r --mm:arc --define:danger tests/test.nim", "https://github.com/disruptek/gram"
  76. # pending https://github.com/nim-lang/Nim/issues/16509
  77. pkg "hts", "nim c -o:htss src/hts.nim"
  78. pkg "httpauth"
  79. pkg "httputils"
  80. pkg "illwill", "nimble examples"
  81. pkg "inim"
  82. pkg "itertools", "nim doc src/itertools.nim"
  83. pkg "iterutils"
  84. pkg "json_rpc"
  85. pkg "json_serialization"
  86. pkg "jstin"
  87. pkg "karax", "nim c -r tests/tester.nim"
  88. pkg "kdtree", "nimble test -d:nimLegacyRandomInitRand", "https://github.com/jblindsay/kdtree"
  89. pkg "loopfusion"
  90. pkg "lockfreequeues"
  91. pkg "macroutils"
  92. pkg "manu"
  93. pkg "markdown"
  94. pkg "measuremancer", "nimble testDeps; nimble -y test"
  95. # when unchained is version 0.3.7 or higher, use `nimble testDeps;`
  96. pkg "memo"
  97. pkg "msgpack4nim", "nim c -r tests/test_spec.nim"
  98. pkg "nake", "nim c nakefile.nim"
  99. pkg "neo", "nim c -d:blas=openblas --mm:refc tests/all.nim"
  100. pkg "nesm", "nimble tests", "https://github.com/nim-lang/NESM", useHead = true, allowFailure = true
  101. # inactive, tests not adapted to #23096
  102. pkg "netty"
  103. pkg "nico", allowFailure = true
  104. pkg "nicy", "nim c -r src/nicy.nim"
  105. pkg "nigui", "nim c -o:niguii -r src/nigui.nim"
  106. pkg "nimcrypto", "nim r --path:. tests/testall.nim" # `--path:.` workaround needed, see D20210308T165435
  107. pkg "NimData", "nim c -o:nimdataa src/nimdata.nim"
  108. pkg "nimes", "nim c src/nimes.nim"
  109. pkg "nimfp", "nim c -o:nfp -r src/fp.nim"
  110. pkg "nimgame2", "nim c --mm:refc nimgame2/nimgame.nim"
  111. pkg "nimgen", "nim c -o:nimgenn -r src/nimgen/runcfg.nim"
  112. pkg "nimib"
  113. pkg "nimlsp"
  114. pkg "nimly", "nim c -r tests/test_readme_example.nim"
  115. pkg "nimongo", "nimble test_ci", allowFailure = true
  116. pkg "nimph", "nimble test", "https://github.com/disruptek/nimph", allowFailure = true
  117. pkg "nimPNG", useHead = true
  118. pkg "nimpy", "nim c -r tests/nimfrompy.nim"
  119. pkg "nimquery"
  120. pkg "nimsl"
  121. pkg "nimsvg"
  122. pkg "nimterop", "nimble minitest", url = "https://github.com/nim-lang/nimterop"
  123. pkg "nimwc", "nim c nimwc.nim"
  124. pkg "nimx", "nim c test/main.nim", allowFailure = true
  125. pkg "nitter", "nim c src/nitter.nim", "https://github.com/zedeus/nitter"
  126. pkg "norm", "testament r tests/common/tmodel.nim"
  127. pkg "normalize"
  128. pkg "npeg", "nimble testarc"
  129. pkg "numericalnim", "nimble nimCI"
  130. pkg "optionsutils"
  131. pkg "ormin", "nim c -o:orminn ormin.nim"
  132. pkg "parsetoml"
  133. pkg "patty"
  134. pkg "pixie"
  135. pkg "plotly", "nim c examples/all.nim"
  136. pkg "pnm"
  137. pkg "polypbren"
  138. pkg "presto"
  139. pkg "prologue", "nimble tcompile"
  140. pkg "protobuf", "nim c -o:protobuff -r src/protobuf.nim"
  141. pkg "rbtree"
  142. pkg "react", "nimble example"
  143. pkg "regex", "nim c src/regex"
  144. pkg "results", "nim c -r results.nim"
  145. pkg "RollingHash", "nim c -r tests/test_cyclichash.nim"
  146. pkg "rosencrantz", "nim c -o:rsncntz -r rosencrantz.nim"
  147. pkg "sdl1", "nim c -r src/sdl.nim"
  148. pkg "sdl2_nim", "nim c -r sdl2/sdl.nim"
  149. pkg "serialization"
  150. pkg "sigv4", "nim c --mm:arc -r sigv4.nim", "https://github.com/disruptek/sigv4"
  151. pkg "sim"
  152. pkg "smtp", "nimble compileExample"
  153. pkg "snip", "nimble test", "https://github.com/genotrance/snip"
  154. pkg "ssostrings"
  155. pkg "stew"
  156. pkg "stint", "nim c stint.nim"
  157. pkg "strslice"
  158. pkg "strunicode", "nim c -r --mm:refc src/strunicode.nim"
  159. pkg "supersnappy"
  160. pkg "synthesis"
  161. pkg "taskpools"
  162. pkg "telebot", "nim c -o:tbot -r src/telebot.nim"
  163. pkg "tempdir"
  164. pkg "templates"
  165. pkg "tensordsl", "nim c -r --mm:refc tests/tests.nim", "https://krux02@bitbucket.org/krux02/tensordslnim.git"
  166. pkg "terminaltables", "nim c src/terminaltables.nim"
  167. pkg "termstyle", "nim c -r termstyle.nim"
  168. pkg "testutils"
  169. pkg "timeit"
  170. pkg "timezones"
  171. pkg "tiny_sqlite"
  172. pkg "unicodedb", "nim c -d:release -r tests/tests.nim"
  173. pkg "unicodeplus", "nim c -d:release -r tests/tests.nim"
  174. pkg "union", "nim c -r tests/treadme.nim", url = "https://github.com/alaviss/union"
  175. pkg "unittest2"
  176. pkg "unpack"
  177. pkg "weave", "nimble test_gc_arc", useHead = true
  178. pkg "websock"
  179. pkg "websocket", "nim c websocket.nim"
  180. # pkg "winim", allowFailure = true
  181. pkg "with"
  182. pkg "ws", allowFailure = true
  183. pkg "yaml"
  184. pkg "zero_functional", "nim c -r test.nim"
  185. pkg "zippy"
  186. pkg "zxcvbn"