summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-07-29 19:28:33 -0700
committerGitHub <noreply@github.com>2021-07-29 19:28:33 -0700
commitafc0259b125f5be032bf4c13721669c5452f9143 (patch)
treee9eb10bf4a6a239c707eef868d911c7efeb371dc /koch.nim
parent6b3c77e7f4421267c551b1cd84717a19c65be2c5 (diff)
downloadNim-afc0259b125f5be032bf4c13721669c5452f9143.tar.gz
fix #18385 followup, by building nimsuggest with -d:release during testing (#18581)
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim
index 4296e4529..8dd897028 100644
--- a/koch.nim
+++ b/koch.nim
@@ -592,6 +592,11 @@ proc runCI(cmd: string) =
     execFold("Run rst2html tests", "nim r nimdoc/rsttester")
     execFold("Run nimpretty tests", "nim r nimpretty/tester.nim")
     when defined(posix):
+      # refs #18385, build with -d:release instead of -d:danger for testing
+      # We could also skip building nimsuggest in buildTools, or build it with -d:release
+      # in bundleNimsuggest depending on some environment variable when we are in CI. One advantage
+      # of rebuilding is this won't affect bin/nimsuggest when running runCI locally
+      execFold("build nimsuggest_testing", "nim c -o:bin/nimsuggest_testing -d:release nimsuggest/nimsuggest")
       execFold("Run nimsuggest tests", "nim r nimsuggest/tester")
 
     execFold("Run atlas tests", "nim c -r -d:atlasTests tools/atlas/atlas.nim clone https://github.com/disruptek/balls")