important_packages.nim 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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 --oldgensym:on tests/test1.nim", allowFailure = true
  33. pkg "asyncthreadpool", "nimble test --mm:refc"
  34. pkg "awk"
  35. pkg "bigints"
  36. pkg "binaryheap", "nim c -r binaryheap.nim"
  37. pkg "BipBuffer"
  38. pkg "blscurve", allowFailure = true # pending https://github.com/status-im/nim-blscurve/issues/39
  39. pkg "bncurve"
  40. pkg "brainfuck", "nim c -d:release -r tests/compile.nim"
  41. pkg "bump", "nim c --gc:arc --path:. -r tests/tbump.nim", "https://github.com/disruptek/bump"
  42. pkg "c2nim", "nim c testsuite/tester.nim"
  43. pkg "cascade"
  44. pkg "cello", url = "https://github.com/nim-lang/cello", useHead = true
  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 --gc:orc"
  50. pkg "compactdict"
  51. pkg "comprehension", "nimble test", "https://github.com/alehander92/comprehension"
  52. pkg "criterion", allowFailure = true # pending https://github.com/disruptek/criterion/issues/3 (wrongly closed)
  53. pkg "datamancer"
  54. pkg "dashing", "nim c tests/functional.nim"
  55. pkg "delaunay", url = "https://github.com/nim-lang/DelaunayNim", useHead = true
  56. pkg "docopt"
  57. pkg "easygl", "nim c -o:egl -r src/easygl.nim", "https://github.com/jackmott/easygl"
  58. pkg "elvis"
  59. pkg "fidget"
  60. pkg "fragments", "nim c -r fragments/dsl.nim", allowFailure = true # pending https://github.com/nim-lang/packages/issues/2115
  61. pkg "fusion"
  62. pkg "gara"
  63. pkg "glob"
  64. pkg "ggplotnim", "nim c -d:noCairo -r tests/tests.nim"
  65. pkg "gittyup", "nimble test", "https://github.com/disruptek/gittyup", allowFailure = true
  66. pkg "gnuplot", "nim c gnuplot.nim"
  67. # pkg "gram", "nim c -r --gc:arc --define:danger tests/test.nim", "https://github.com/disruptek/gram"
  68. # pending https://github.com/nim-lang/Nim/issues/16509
  69. pkg "hts", "nim c -o:htss src/hts.nim"
  70. pkg "httpauth"
  71. pkg "illwill", "nimble examples"
  72. pkg "inim"
  73. pkg "itertools", "nim doc src/itertools.nim"
  74. pkg "iterutils"
  75. pkg "jstin"
  76. pkg "karax", "nim c -r tests/tester.nim"
  77. pkg "kdtree", "nimble test -d:nimLegacyRandomInitRand", "https://github.com/jblindsay/kdtree"
  78. pkg "loopfusion"
  79. pkg "lockfreequeues"
  80. pkg "macroutils"
  81. pkg "manu"
  82. pkg "markdown"
  83. pkg "memo"
  84. pkg "msgpack4nim", "nim c -r tests/test_spec.nim"
  85. pkg "nake", "nim c nakefile.nim"
  86. pkg "neo", "nim c -d:blas=openblas --mm:refc tests/all.nim"
  87. pkg "nesm", "nimble tests", "https://github.com/nim-lang/NESM", useHead = true
  88. pkg "netty"
  89. pkg "nico", allowFailure = true
  90. pkg "nicy", "nim c -r src/nicy.nim"
  91. pkg "nigui", "nim c -o:niguii -r src/nigui.nim"
  92. pkg "nimcrypto", "nim r --path:. tests/testall.nim" # `--path:.` workaround needed, see D20210308T165435
  93. pkg "NimData", "nim c -o:nimdataa src/nimdata.nim"
  94. pkg "nimes", "nimble install -y sdl2@#HEAD;nim c src/nimes.nim"
  95. pkg "nimfp", "nim c -o:nfp -r src/fp.nim"
  96. pkg "nimgame2", "nim c --mm:refc nimgame2/nimgame.nim"
  97. # XXX Doesn't work with deprecated 'randomize', will create a PR.
  98. pkg "nimgen", "nim c -o:nimgenn -r src/nimgen/runcfg.nim"
  99. pkg "nimlsp", allowFailure = true # dependency on ast_pattern_matching
  100. pkg "nimly", "nim c -r tests/test_readme_example.nim"
  101. pkg "nimongo", "nimble test_ci", allowFailure = true
  102. pkg "nimph", "nimble test", "https://github.com/disruptek/nimph", allowFailure = true
  103. pkg "nimpy", "nim c -r tests/nimfrompy.nim"
  104. pkg "nimquery"
  105. pkg "nimsl"
  106. pkg "nimsvg"
  107. pkg "nimterop", "nimble minitest"
  108. pkg "nimwc", "nim c nimwc.nim"
  109. pkg "nimx", "nim c --threads:on test/main.nim", allowFailure = true
  110. pkg "nitter", "nim c src/nitter.nim", "https://github.com/zedeus/nitter"
  111. pkg "norm", "testament r tests/sqlite/trows.nim"
  112. pkg "npeg", "nimble testarc"
  113. pkg "numericalnim", "nimble nimCI"
  114. pkg "optionsutils"
  115. pkg "ormin", "nim c -o:orminn ormin.nim"
  116. pkg "parsetoml"
  117. pkg "patty"
  118. pkg "pixie"
  119. pkg "plotly", "nim c examples/all.nim"
  120. pkg "pnm"
  121. pkg "polypbren"
  122. pkg "prologue", "nimble tcompile"
  123. pkg "protobuf", "nim c -o:protobuff -r src/protobuf.nim"
  124. pkg "pylib"
  125. pkg "rbtree"
  126. pkg "react", "nimble example"
  127. pkg "regex", "nim c src/regex"
  128. pkg "result", "nim c -r result.nim"
  129. pkg "RollingHash", "nim c -r tests/test_cyclichash.nim"
  130. pkg "rosencrantz", "nim c -o:rsncntz -r rosencrantz.nim"
  131. pkg "sdl1", "nim c -r src/sdl.nim"
  132. pkg "sdl2_nim", "nim c -r sdl2/sdl.nim"
  133. pkg "sigv4", "nim c --gc:arc -r sigv4.nim", "https://github.com/disruptek/sigv4"
  134. pkg "sim"
  135. pkg "snip", "nimble test", "https://github.com/genotrance/snip"
  136. pkg "stint", "nim r stint.nim"
  137. pkg "strslice"
  138. pkg "strunicode", "nim c -r --mm:refc src/strunicode.nim"
  139. pkg "supersnappy"
  140. pkg "synthesis"
  141. pkg "telebot", "nim c -o:tbot -r src/telebot.nim"
  142. pkg "tempdir"
  143. pkg "templates"
  144. pkg "tensordsl", "nim c -r --mm:refc tests/tests.nim", "https://krux02@bitbucket.org/krux02/tensordslnim.git"
  145. pkg "terminaltables", "nim c src/terminaltables.nim"
  146. pkg "termstyle", "nim c -r termstyle.nim"
  147. pkg "timeit"
  148. pkg "timezones"
  149. pkg "tiny_sqlite"
  150. pkg "unicodedb", "nim c -d:release -r tests/tests.nim"
  151. pkg "unicodeplus", "nim c -d:release -r tests/tests.nim"
  152. pkg "unpack"
  153. pkg "weave", "nimble install -y cligen synthesis;nimble test_gc_arc"
  154. pkg "websocket", "nim c websocket.nim"
  155. pkg "winim", "nim c winim.nim"
  156. pkg "with"
  157. pkg "ws", allowFailure = true
  158. pkg "yaml", "nim c -r test/tserialization.nim"
  159. pkg "zero_functional", "nim c -r -d:nimNoLentIterators test.nim"
  160. pkg "zippy"