important_packages.nim 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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", 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 "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"
  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"
  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", url = "https://github.com/nim-lang/loop-fusion"
  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 "nimib"
  102. pkg "nimlsp"
  103. pkg "nimly", "nim c -r tests/test_readme_example.nim"
  104. pkg "nimongo", "nimble test_ci", allowFailure = true
  105. pkg "nimph", "nimble test", "https://github.com/disruptek/nimph", allowFailure = true
  106. pkg "nimPNG", useHead = true
  107. pkg "nimpy", "nim c -r tests/nimfrompy.nim"
  108. pkg "nimquery"
  109. pkg "nimsl"
  110. pkg "nimsvg"
  111. pkg "nimterop", "nimble minitest", url = "https://github.com/nim-lang/nimterop"
  112. pkg "nimwc", "nim c nimwc.nim", allowFailure = true
  113. pkg "nimx", "nim c --threads:on test/main.nim", allowFailure = true
  114. pkg "nitter", "nim c src/nitter.nim", "https://github.com/zedeus/nitter"
  115. pkg "norm", "testament r tests/common/tmodel.nim"
  116. pkg "npeg", "nimble testarc"
  117. pkg "numericalnim", "nimble nimCI"
  118. pkg "optionsutils"
  119. pkg "ormin", "nim c -o:orminn ormin.nim"
  120. pkg "parsetoml"
  121. pkg "patty"
  122. pkg "pixie"
  123. pkg "plotly", "nim c examples/all.nim"
  124. pkg "pnm"
  125. pkg "polypbren"
  126. pkg "prologue", "nimble tcompile"
  127. pkg "protobuf", "nim c -o:protobuff -r src/protobuf.nim"
  128. pkg "pylib"
  129. pkg "rbtree"
  130. pkg "react", "nimble example"
  131. pkg "regex", "nim c src/regex"
  132. pkg "result", "nim c -r result.nim"
  133. pkg "RollingHash", "nim c -r tests/test_cyclichash.nim"
  134. pkg "rosencrantz", "nim c -o:rsncntz -r rosencrantz.nim"
  135. pkg "sdl1", "nim c -r src/sdl.nim"
  136. pkg "sdl2_nim", "nim c -r sdl2/sdl.nim"
  137. pkg "sigv4", "nim c --gc:arc -r sigv4.nim", "https://github.com/disruptek/sigv4"
  138. pkg "sim"
  139. pkg "smtp", "nimble compileExample"
  140. pkg "snip", "nimble test", "https://github.com/genotrance/snip"
  141. pkg "stew"
  142. pkg "stint", "nim r stint.nim"
  143. pkg "strslice"
  144. pkg "strunicode", "nim c -r --mm:refc src/strunicode.nim"
  145. pkg "supersnappy"
  146. pkg "synthesis"
  147. pkg "taskpools"
  148. pkg "telebot", "nim c -o:tbot -r src/telebot.nim"
  149. pkg "tempdir"
  150. pkg "templates"
  151. pkg "tensordsl", "nim c -r --mm:refc tests/tests.nim", "https://krux02@bitbucket.org/krux02/tensordslnim.git"
  152. pkg "terminaltables", "nim c src/terminaltables.nim"
  153. pkg "termstyle", "nim c -r termstyle.nim"
  154. pkg "timeit"
  155. pkg "timezones"
  156. pkg "tiny_sqlite"
  157. pkg "unicodedb", "nim c -d:release -r tests/tests.nim"
  158. pkg "unicodeplus", "nim c -d:release -r tests/tests.nim"
  159. pkg "unpack"
  160. pkg "weave", "nimble test_gc_arc", useHead = true
  161. pkg "websocket", "nim c websocket.nim"
  162. pkg "winim", "nim c winim.nim"
  163. pkg "with"
  164. pkg "ws", allowFailure = true
  165. pkg "yaml", "nim c -r test/tserialization.nim"
  166. pkg "zero_functional", "nim c -r -d:nimNoLentIterators test.nim"
  167. pkg "zippy"