[CI] fixes #10041 move bulk of travis and appveyor logic to koch.nim (#10183)

This commit is contained in:
Timothee Cour
2019-01-08 04:08:19 -08:00
committed by Andreas Rumpf
parent 6737634d88
commit c60916a2af
4 changed files with 53 additions and 38 deletions

View File

@@ -51,6 +51,12 @@ proc execCleanPath*(cmd: string,
if execShellCmd(cmd) != 0: quit("FAILURE", errorcode)
putEnv("PATH", prevPath)
let kochExe* = os.getAppFilename()
# note: assumes `kochdocs` is only used by koch.nim
proc kochExec*(cmd: string) =
exec kochExe.quoteShell & " " & cmd
proc nimexec*(cmd: string) =
# Consider using `nimCompile` instead
exec findNim() & " " & cmd