예제 #1
0
파일: factory.py 프로젝트: cdent/st-clients
    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
예제 #2
0
파일: factory.py 프로젝트: cdent/st-clients
def stSanityFactory(repo):
    sanityTests = ['compile', 'case-conflict', 'copyright', 'tests', 'programs', 'pod', 'pod-coverage' ]

    return SocialtextBuildFactory(repo,
        [proveStep(test) for test in sanityTests])