important_packages.nim 6.7 KB

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