important_packages.nim 7.0 KB

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