示例#1
0
  def build(self, targets, args):
    for target in targets:
      assert is_python(target), "PythonBuilder can only build PythonTargets, given %s" % str(target)
      if not is_test(target):
        raise Exception("PythonBuilder cannot handle target: %s" % str(target))

    return self._run_tests(targets, args)
示例#2
0
    def execute(self):
        print "Build operating on targets: %s" % self.targets

        jvm_targets = OrderedSet()
        python_targets = OrderedSet()
        for target in self.targets:
            if is_jvm(target):
                jvm_targets.add(target)
            elif is_python(target):
                python_targets.add(target)
            else:
                self.error("Cannot build target %s" % target)

        if jvm_targets:
            status = self._jvm_build(jvm_targets)
            if status != 0:
                return status

        if python_targets:
            status = self._python_build(python_targets)

        return status
示例#3
0
文件: build.py 项目: collude/collude
  def execute(self):
    print "Build operating on targets: %s" % self.targets

    jvm_targets = OrderedSet()
    python_targets = OrderedSet()
    for target in self.targets:
      if is_jvm(target):
        jvm_targets.add(target)
      elif is_python(target):
        python_targets.add(target)
      else:
        self.error("Cannot build target %s" % target)

    if jvm_targets:
      status = self._jvm_build(jvm_targets)
      if status != 0:
        return status

    if python_targets:
      status = self._python_build(python_targets)

    return status