Skip to content

Commit da7f884

Browse files
author
buildbot
committed
Added steps to copy in a settings_local and collecting static files to the builders.
- Legacy-Id: 10707
1 parent a781df6 commit da7f884

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

buildbot/masters/datatracker/master.cfg

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ factory.addStep(ShellCommand(
219219
haltOnFailure=True,
220220
command=["pip", "install", "-r", "requirements.txt"],
221221
))
222+
factory.addStep(ShellCommand(
223+
descriptionDone="seting up settings_local.py",
224+
workdir=Interpolate('build/%(src::branch)s'),
225+
haltOnFailure=True,
226+
command=["cp", "/home/buildbot/settings_local.py", "./"],
227+
))
222228
factory.addStep(PyFlakes(
223229
workdir=Interpolate('build/%(src::branch)s'),
224230
haltOnFailure=True,
@@ -257,6 +263,19 @@ factory.addStep(ShellCommand(
257263
haltOnFailure=True,
258264
command=["pip", "install", "-r", "requirements.txt"],
259265
))
266+
factory.addStep(ShellCommand(
267+
descriptionDone="copy settings_local.py",
268+
workdir=Interpolate('build/%(src::branch)s'),
269+
haltOnFailure=True,
270+
command=["cp", "/home/buildbot/settings_local.py", "./"],
271+
))
272+
factory.addStep(ShellCommand(
273+
descriptionDone="collect static files",
274+
workdir=Interpolate('build/%(src::branch)s'),
275+
haltOnFailure=False,
276+
flunkOnFailure=False,
277+
command=["ietf/manage.py", "collectstatic", "--noinput", ],
278+
))
260279
factory.addStep(UnitTest(
261280
workdir=Interpolate('build/%(src::branch)s'),
262281
haltOnFailure=True,
@@ -285,6 +304,7 @@ factory.addStep(ShellCommand(
285304
descriptionDone="svn cleanup",
286305
workdir=Interpolate('build/%(src::branch)s'),
287306
haltOnFailure=False,
307+
flunkOnFailure=False,
288308
command=["svn", "cleanup"],
289309
))
290310
factory.addStep(SVN(
@@ -302,6 +322,19 @@ factory.addStep(ShellCommand(
302322
haltOnFailure=True,
303323
command=["pip", "install", "-r", "requirements.txt"],
304324
))
325+
factory.addStep(ShellCommand(
326+
descriptionDone="copy settings_local.py",
327+
workdir=Interpolate('build/%(src::branch)s'),
328+
haltOnFailure=True,
329+
command=["cp", "/Users/buildbot/settings_local.py", "./"],
330+
))
331+
factory.addStep(ShellCommand(
332+
descriptionDone="collect static files",
333+
workdir=Interpolate('build/%(src::branch)s'),
334+
haltOnFailure=False,
335+
flunkOnFailure=False,
336+
command=["ietf/manage.py", "collectstatic", "--noinput", ],
337+
))
305338
factory.addStep(UnitTest(
306339
workdir=Interpolate('build/%(src::branch)s'),
307340
haltOnFailure=True,
@@ -334,6 +367,12 @@ factory.addStep(ShellCommand(
334367
haltOnFailure=True,
335368
command=["pip", "install", "-r", "requirements.txt"],
336369
))
370+
factory.addStep(ShellCommand(
371+
descriptionDone="copy settings_local.py",
372+
workdir=Interpolate('build/%(src::branch)s'),
373+
haltOnFailure=True,
374+
command=["cp", "/home/buildbot/settings_local.py", "./"],
375+
))
337376
factory.addStep(TestCrawlerShellCommand(
338377
workdir=Interpolate('build/%(src::branch)s'),
339378
haltOnFailure=True,
@@ -375,12 +414,25 @@ factory.addStep(ShellCommand(
375414
haltOnFailure=True,
376415
command=["pip", "install", "--upgrade", "-r", "requirements.txt"],
377416
))
417+
factory.addStep(ShellCommand(
418+
descriptionDone="seting up settings_local.py",
419+
workdir=Interpolate('build/%(src::branch)s'),
420+
haltOnFailure=True,
421+
command=["cp", "/home/buildbot/settings_local.py", "./"],
422+
))
378423
factory.addStep(ShellCommand(
379424
descriptionDone="list installed pyton modules",
380425
workdir=Interpolate('build/%(src::branch)s'),
381426
haltOnFailure=True,
382427
command=["pip", "list"],
383428
))
429+
factory.addStep(ShellCommand(
430+
descriptionDone="collect static files",
431+
workdir=Interpolate('build/%(src::branch)s'),
432+
haltOnFailure=False,
433+
flunkOnFailure=False,
434+
command=["ietf/manage.py", "collectstatic", "--noinput", ],
435+
))
384436
factory.addStep(UnitTest(
385437
workdir=Interpolate('build/%(src::branch)s'),
386438
haltOnFailure=True,

0 commit comments

Comments
 (0)