summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-02-09 07:40:00 +0100
committerGitHub <noreply@github.com>2019-02-09 07:40:00 +0100
commitdee9a942784779859707efcffb4cca5a7bcc0bc4 (patch)
tree0bc09ad924b691133eaebf97530cce7312b049bc /koch.nim
parent594c2576e6aceb4eb37ed783f5351feca2557acb (diff)
downloadNim-dee9a942784779859707efcffb4cca5a7bcc0bc4.tar.gz
new AppVeyor configuration that should test the compiler against sele… (#10549)
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim55
1 files changed, 27 insertions, 28 deletions
diff --git a/koch.nim b/koch.nim
index c91f3d6a6..92fc3a766 100644
--- a/koch.nim
+++ b/koch.nim
@@ -467,34 +467,33 @@ proc runCI(cmd: string) =
   ## build nimble early on to enable remainder to depend on it if needed
   kochExecFold("Build Nimble", "nimble")
 
-  when false:
-    for pkg in "zip opengl sdl1 jester@#head niminst".split:
-      exec "nimble install -y" & pkg
-
-  buildTools() # altenatively, kochExec "tools --toolsNoNimble"
-
-  ## run tests
-  execFold("Test nimscript", "nim e tests/test_nimscript.nims")
-  when defined(windows):
-    # note: will be over-written below
-    execFold("Compile tester", "nim c -d:nimCoroutines --os:genode -d:posix --compileOnly testament/tester")
-
-  # main bottleneck here
-  execFold("Run tester", "nim c -r -d:nimCoroutines testament/tester --pedantic all -d:nimCoroutines")
-
-  execFold("Run nimdoc tests", "nim c -r nimdoc/tester")
-  execFold("Run nimpretty tests", "nim c -r nimpretty/tester.nim")
-  when defined(posix):
-    execFold("Run nimsuggest tests", "nim c -r nimsuggest/tester")
-
-  ## remaining actions
-  when defined(posix):
-    kochExecFold("Docs", "docs --git.commit:devel")
-    kochExecFold("C sources", "csource")
-  elif defined(windows):
-    when false:
-      kochExec "csource"
-      kochExec "zip"
+  if getEnv("NIM_TEST_PACKAGES", "false") == "true":
+    execFold("Test selected Nimble packages", "nim c -r testament/tester cat nimble-extra")
+  else:
+    buildTools() # altenatively, kochExec "tools --toolsNoNimble"
+
+    ## run tests
+    execFold("Test nimscript", "nim e tests/test_nimscript.nims")
+    when defined(windows):
+      # note: will be over-written below
+      execFold("Compile tester", "nim c -d:nimCoroutines --os:genode -d:posix --compileOnly testament/tester")
+
+    # main bottleneck here
+    execFold("Run tester", "nim c -r -d:nimCoroutines testament/tester --pedantic all -d:nimCoroutines")
+
+    execFold("Run nimdoc tests", "nim c -r nimdoc/tester")
+    execFold("Run nimpretty tests", "nim c -r nimpretty/tester.nim")
+    when defined(posix):
+      execFold("Run nimsuggest tests", "nim c -r nimsuggest/tester")
+
+    ## remaining actions
+    when defined(posix):
+      kochExecFold("Docs", "docs --git.commit:devel")
+      kochExecFold("C sources", "csource")
+    elif defined(windows):
+      when false:
+        kochExec "csource"
+        kochExec "zip"
 
 proc pushCsources() =
   if not dirExists("../csources/.git"):