Commits

dready committed 32f4fac

add schedule.py script

Comments (0)

Files changed (1)

+"""
+Schedule a ``Build`` for all recipes.
+"""
+from factory.models import FabfileRecipe, Build
+from datetime import datetime
+
+DEFAULT_TASK = 'build_and_test'
+
+for recipe in FabfileRecipe.objects.all():
+    name = "%s %s" % (recipe.name, datetime.now().strftime("%d/%m/%Y"))
+    b = Build.objects.create(name=name,
+                             task=DEFAULT_TASK,
+                             fabfile_recipe=recipe)
+
+