Commits

Steve Losh committed 24567de

Add a run_build method to Projects.

  • Participants
  • Parent commits 9af8d22

Comments (0)

Files changed (1)

File integration/models.py

+import subprocess
 from django.db import models
+from django.conf import settings
 
 class Project(models.Model):
     """A single project that will be tested continuously."""
         except IndexError:
             return None
     
+    def run_build(self):
+        subprocess.Popen(['./builder.py', self.slug], cwd=settings.BASE_DIR)
+    
     def __unicode__(self):
         return u"%s" % self.name