Esempio n. 1
0
 def buildAll(self):
     rootPath = os.path.join(self.config["stageDir"], "trunk", "qooxdoo")
     
     if self.config["svnRevert"]:
         util.svnRevert(rootPath)
     
     if self.config["svnUpdate"]:
         util.svnUpdate(rootPath)
         self.log.info("Updated to revision %s" %util.getSvnVersion(rootPath))
     
     self.log.info("Building all configured targets.")
     for target in self.config["targets"]:
         self.buildApp(target)
Esempio n. 2
0
     if "generator" in self.configuration:
         self.log.info("Starting Generator test run")
         self.log.indent()
         generatorResults = Builder.testGenerator(self.configuration["generator"], self.log)
         reportServer = self.getConfigSetting("reporting/reportServer", False)
         if reportServer:
             self.log.info("Sending Generator test results to report server")
             response = reporting.sendResultToReportServer(reportServer, generatorResults, "generatorRun")
             self.log.info("Report Server response: %s" %response)
         self.log.outdent()
     
     if not "testRun" in self.configuration:
         return
     
     if self.getConfigSetting("testRun/updateSimulator", False):
         util.svnUpdate(self.getConfigSetting("testRun/simulatorDirectory"))
     
     if "applications" in self.configuration["testRun"]:
         for app in self.getConfigSetting("testRun/applications", {}):
             #appConf = self.configuration["testRun"]["applications"][app]
             appConf = self.getConfigSetting("testRun/applications/" + app)
             self.runSimsForApp(app, appConf)
     
     if "collections" in self.configuration["testRun"]:
         for coll in self.getConfigSetting("testRun/collections", {}):
             collConf = self.getConfigSetting("testRun/collections/" + coll)
             self.runSimsForCollection(coll, collConf, self.getConfigSetting("testRun/simulatorDirectory"))
     
     self.log.outdent()
 
 
Esempio n. 3
0
        
        return buildStatus

        
    def buildAll(self):
        rootPath = os.path.join(self.config["stageDir"], "trunk", "qooxdoo")
        
        if self.config["svnRevert"]:
            try:
                util.svnRevert(rootPath)
            except Exception, e:
                self.log.error("Error reverting SVN: " + str(e))
        
        if self.config["svnUpdate"]:
            try:
                util.svnUpdate(rootPath)
                self.log.info("Updated to revision %s" %util.getSvnVersion(rootPath))
            except Exception, e:
                self.log.error("Error updating SVN: " + str(e))
        
        self.log.info("Building all configured targets.")
        for target in self.config["targets"]:
            self.buildApp(target)

    
    @classmethod
    def testGenerator(cls, config, logger):
        initialPath = os.getcwd()
        results = []
        for test in config:
            logger.debug("Changing working dir to " + test["path"])