2006-10-04 Mark Rowe <bdash@webkit.org>
[WebKit-https.git] / WebKitTools / BuildSlaveSupport / build.webkit.org-config / webkit / factories.py
1 from webkit.steps import *
2 from buildbot.process import factory
3
4 s = factory.s
5
6 class BuildFactory(factory.BuildFactory):
7     useProgress = False
8     def __init__(self):
9         factory.BuildFactory.__init__(self, [s(CheckOutSource)])
10
11 class StandardBuildFactory(BuildFactory):
12     def __init__(self):
13         BuildFactory.__init__(self)
14         self.steps.append(s(SetConfiguration, configuration="release"))
15         self.steps.append(s(self.getCompileStep(), configuration="release"))
16         self.steps.append(s(JavaScriptCoreTest))
17         self.steps.append(s(LayoutTest))
18         self.steps.append(s(UploadLayoutResults))
19 #        self.steps.append(s(UploadDiskImage))
20
21     def getCompileStep(self):
22         return CompileWebKit
23
24
25 class NoSVGBuildFactory(StandardBuildFactory):
26     def getCompileStep(self):
27         return CompileWebKitNoSVG
28
29
30 class PixelTestBuildFactory(BuildFactory):
31     def __init__(self):
32         BuildFactory.__init__(self)
33         self.steps.append(s(SetConfiguration, configuration="release"))
34         self.steps.append(s(CompileWebKit, configuration="release"))
35         self.steps.append(s(PixelLayoutTest))
36         self.steps.append(s(UploadLayoutResults))
37
38 class LeakBuildFactory(BuildFactory):
39     def __init__(self):
40         BuildFactory.__init__(self)
41         self.steps.append(s(SetConfiguration, configuration="debug"))
42         self.steps.append(s(CompileWebKit, configuration="debug"))
43         self.steps.append(s(JavaScriptCoreTest))
44         self.steps.append(s(LeakTest))
45         self.steps.append(s(UploadLayoutResults))
46 #        self.steps.append(s(UploadDiskImage))
47
48 class PageLoadTestBuildFactory(BuildFactory):
49     def __init__(self):
50         BuildFactory.__init__(self)
51         self.steps.append(s(CompileWebKit, configuration="release"))
52         self.steps.append(s(PageLoadTest))
53
54 class Win32BuildFactory(BuildFactory):
55     def __init__(self):
56         BuildFactory.__init__(self)
57         self.steps.append(s(InstallWin32Dependencies))
58         self.steps.append(s(CompileWebKit, configuration="release"))
59         self.steps.append(s(JavaScriptCoreTest))
60         self.steps.append(s(LayoutTest))
61
62 class QtBuildFactory(BuildFactory):
63     def __init__(self):
64         BuildFactory.__init__(self)
65         self.steps.append(s(SetConfiguration, configuration="release"))
66         self.steps.append(s(CompileWebKit, configuration="release"))
67         self.steps.append(s(JavaScriptCoreTest))