def __init__( self, precompilation_commands=[], precompile_commands=[], postcompile_commands=[], postcompilation_commands=[], *args, **kwargs ): CompilationTask.__init__(self) SystemTask.__init__(self, *args, **kwargs) self.precompilation_commands = precompilation_commands self.precompile_commands = precompile_commands self.postcompile_commands = postcompile_commands self.postcompilation_commands = postcompilation_commands
def precompile(self, commit): CompilationTask.precompile(self, commit) self.options.update(output_directory=self.output_directory_for(commit)) self.execute_all(self.precompile_commands)
def __call__(self, targets, options, git_manager, *args, **kwargs): """:[ This is terrible. You're an awful programmer.""" self.targets, self.options, self.git_manager = targets, options, git_manager CompilationTask.__call__(self, targets, options, git_manager, *args, **kwargs)
def __init__(self): self.pr_title = re.compile('Merge pull request (#\d+) from .+\n\n(.+)', re.DOTALL) self.tag = re.compile('([\d\.]+)') CompilationTask.__init__(self)