Update to work with latest Nim devel and cliutil updates.
This commit is contained in:
parent
e39c1186c8
commit
6569564aa8
@ -53,7 +53,7 @@ proc setupProject(wksp: Workspace) =
|
||||
["clone", wksp.projectDef.repo, "repo"],
|
||||
wksp.env, {poUsePath}, wksp.outputHandler)
|
||||
|
||||
if cloneResult.exitCode != 0:
|
||||
if cloneResult != 0:
|
||||
raiseEx "unable to clone repo for '" & wksp.projectDef.name & "'"
|
||||
|
||||
# Checkout the requested ref
|
||||
@ -61,7 +61,7 @@ proc setupProject(wksp: Workspace) =
|
||||
["checkout", wksp.buildRef],
|
||||
wksp.env, {poUsePath}, wksp.outputHandler)
|
||||
|
||||
if checkoutResult.exitCode != 0:
|
||||
if checkoutResult != 0:
|
||||
raiseEx "unable to checkout ref " & wksp.buildRef &
|
||||
" for '" & wksp.projectDef.name & "'"
|
||||
|
||||
@ -77,16 +77,13 @@ proc setupProject(wksp: Workspace) =
|
||||
for k, v in wksp.projectDef.envVars: wksp.env[k] = v
|
||||
|
||||
# Get the build version
|
||||
let versionProc = startProcess(
|
||||
let versionResult = execWithOutput(
|
||||
wksp.project.versionCmd, # command
|
||||
wksp.dir & "/repo", # working dir
|
||||
[], # args
|
||||
wksp.env, # environment
|
||||
{poUsePath, poEvalCommand}) # options
|
||||
|
||||
let versionResult = waitForWithOutput(versionProc, wksp.outputHandler,
|
||||
wksp.project.versionCmd)
|
||||
|
||||
if versionResult.exitCode != 0:
|
||||
raiseEx "Version command (" & wksp.project.versionCmd &
|
||||
") returned non-zero exit code."
|
||||
@ -140,9 +137,9 @@ proc runStep*(wksp: Workspace, step: Step) =
|
||||
cmdInStream.flush()
|
||||
cmdInStream.close()
|
||||
|
||||
let cmdResult = waitForWithOutput(cmdProc, wksp.outputHandler, step.stepCmd)
|
||||
let cmdResult = waitFor(cmdProc, wksp.outputHandler, step.stepCmd)
|
||||
|
||||
if cmdResult.exitCode != 0:
|
||||
if cmdResult != 0:
|
||||
raiseEx "step " & step.name & " failed: step command returned non-zero exit code"
|
||||
|
||||
# Gather the output artifacts (if we have any)
|
||||
|
@ -1,3 +1,3 @@
|
||||
import unittest
|
||||
|
||||
import ./functional/tserver.nim
|
||||
import ./functional/tserver
|
||||
|
@ -1,4 +1,4 @@
|
||||
import unittest
|
||||
|
||||
import ./unit/tserver.nim
|
||||
import ./unit/tconfiguration.nim
|
||||
import ./unit/tserver
|
||||
import ./unit/tconfiguration
|
||||
|
Loading…
x
Reference in New Issue
Block a user