def deriveTestsFromChanges(self, changed_files): steps = [] for file in changed_files.keys(): normal_file = re.match('^nlw/lib', file) test_file = re.match('^nlw/t/(.*)\.t$', file) if normal_file: steps.append(multiProveStep(file)) elif test_file: steps.append(proveStep(test_file.group(1))) return self.basicSteps + steps
def stSanityFactory(repo): sanityTests = ['compile', 'case-conflict', 'copyright', 'tests', 'programs', 'pod', 'pod-coverage' ] return SocialtextBuildFactory(repo, [proveStep(test) for test in sanityTests])