def __init__(self, repo, steps=None): self.basicSteps = [ # Checkout s( SocialtextSVN , mode='update' , baseURL=repo , defaultBranch='/trunk' ), # Fix tarball (harmless on nonMacs) nlwShellStep( 'fix help tarball' , 'dev-bin/fix-help-tarball-for-mac' ), # Stop test servers; clear cached fixtures. nlwShellStep( 'cleanup' , 'if [ -d t/tmp ]; then dev-bin/nlwctl -t stop; rm -r t/tmp*; fi' ), # Configure. nlwShellStep( 'configure' , './configure --dev=1 --apache-proxy=1 [email protected]' )] BuildFactory.__init__(self, self.basicSteps + steps)
def stLiveFactory(repo): return SocialtextLiveTestFactory( repo, [nlwShellStep('run tests', 'find t/live -name \\*.t -print0 | xargs -0 prove -lvs')])
def stTestFactory(repo): return SocialtextBuildFactory( repo, [nlwShellStep('run tests', 'find t -name \\*.t -not -regex .\\*t/live.\\* -print0 | xargs -0 prove -lvs')])