Skip to content

Commit

Permalink
steps: removed junk from an old rev (proper merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
os12 committed Sep 28, 2012
1 parent 68bbc48 commit c4de448
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions master/buildbot/steps/vstudio.py
Expand Up @@ -15,11 +15,7 @@

# Visual studio steps

from twisted.python import log
from twisted.internet import defer

from buildbot.steps.shell import ShellCommand
from buildbot.process import buildstep
from buildbot.process.buildstep import LogLineObserver
from buildbot.status.results import SUCCESS, WARNINGS, FAILURE

Expand Down Expand Up @@ -86,6 +82,10 @@ class VisualStudio(ShellCommand):
description = "compiling"
descriptionDone = "compile"


progressMetrics = ( ShellCommand.progressMetrics +
('projects', 'files','warnings',))

logobserver = None

installdir = None
Expand Down Expand Up @@ -132,21 +132,6 @@ def __init__(self,
self.PATH = PATH
# always upcall !
ShellCommand.__init__(self, **kwargs)
self.addFactoryArguments(
installdir = installdir,
mode = mode,
projectfile = projectfile,
config = config,
useenv = useenv,
project = project,
INCLUDE = INCLUDE,
LIB = LIB,
PATH = PATH
)

def setupProgress(self):
self.progressMetrics += ('projects', 'files', 'warnings',)
return ShellCommand.setupProgress(self)

def setupLogfiles(self, cmd, logfiles):
logwarnings = self.addLog("warnings")
Expand Down Expand Up @@ -194,7 +179,7 @@ def createSummary(self, log):
self.step_status.setStatistic('errors', self.logobserver.nbErrors)

def evaluateCommand(self, cmd):
if cmd.rc != 0:
if cmd.didFail():
return FAILURE
if self.logobserver.nbErrors > 0:
return FAILURE
Expand Down Expand Up @@ -242,6 +227,8 @@ def start(self):
command.append("ALL - " + self.config)
if self.mode == "rebuild":
command.append("/REBUILD")
elif self.mode == "clean":
command.append("/CLEAN")
else:
command.append("/BUILD")
if self.useenv:
Expand Down Expand Up @@ -279,6 +266,8 @@ def start(self):
command.append(self.projectfile)
if self.mode == "rebuild":
command.append("/Rebuild")
elif self.mode == "clean":
command.append("/Clean")
else:
command.append("/Build")
command.append(self.config)
Expand Down Expand Up @@ -306,7 +295,6 @@ def __init__(self, arch = "x86", **kwargs):

# always upcall !
VisualStudio.__init__(self, **kwargs)
self.addFactoryArguments(arch = arch)

def setupEnvironment(self, cmd):
VisualStudio.setupEnvironment(self, cmd)
Expand Down Expand Up @@ -346,6 +334,8 @@ def start(self):
command.append(self.projectfile)
if self.mode == "rebuild":
command.append("/Rebuild")
elif self.mode == "clean":
command.append("/Clean")
else:
command.append("/Build")
command.append(self.config)
Expand Down Expand Up @@ -375,7 +365,6 @@ class MsBuild(VisualStudio):
def __init__(self, platform = None, **kwargs):
self.platform = platform
VisualStudio.__init__(self, **kwargs)
self.addFactoryArguments(platform = platform)

def setupEnvironment(self, cmd):
VisualStudio.setupEnvironment(self, cmd)
Expand Down

0 comments on commit c4de448

Please sign in to comment.