important_packages.nim 6.5 KB

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