Update NPM.py

This commit is contained in:
Andrei Yankovich 2019-07-29 20:05:44 +03:00 committed by GitHub
parent fab97a4a06
commit 804fddecc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,19 @@ def isLog(step):
def getFactory():
factory = base.getFactory();
factory.addStep(
steps.ShellCommand(
command = [
'npm',
"stop"
],
doStepIf = lambda step : (not isLog(step)) ,
haltOnFailure = True,
name = 'npm stop',
description = 'stop old version',
)
);
factory.addStep(
steps.Git(
repourl=util.Interpolate('%(prop:repository)s'),
@ -44,19 +57,6 @@ def getFactory():
)
);
factory.addStep(
steps.ShellCommand(
command = [
'npm',
"stop"
],
doStepIf = lambda step : (not isLog(step)) ,
haltOnFailure = True,
name = 'npm stop',
description = 'stop old version',
)
);
factory.addStep(
steps.ShellCommand(
command = [