yml / fabric_factory

This project aims to provide an easy to setup continuous integration server and client. The server side infrastructure is built on top of django. The tasks are described using fabric.

Clone this repository (size: 56.6 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/yml/fabric_factory/
commit 35: eb19eb9949f9
parent 34: ca4a3ac73462
branch: default
Fix some subtile bug in the way the fab tasks should be written in order to be run by the worker.
yml...@gmail.com
5 months ago

Changed (Δ113 bytes):

raw changeset »

docs/fabfile.py (7 lines added, 4 lines removed)

Up to file-list docs/fabfile.py:

@@ -4,6 +4,7 @@ import subprocess
4
4
5
5
from fabric.api import local
6
6
7
ve_bin = 'fabric_factory_sandbox/ve/bin'
7
8
8
9
def bootstrap():
9
10
    """
@@ -15,14 +16,16 @@ def install_requirements():
15
16
    """
16
17
    Install pip and the requirements described in the requirments.txt
17
18
    """
18
    local('. fabric_factory_sandbox/ve/bin/activate; easy_install pip')
19
    local('. fabric_factory_sandbox/ve/bin/activate; pip install -r fabric_factory_sandbox/fabric_factory/requirements.txt')
19
    local('%(ve_bin)s/python %(ve_bin)s/easy_install pip'
20
          %{'ve_bin':ve_bin})
21
    local('cd fabric_factory_sandbox/fabric_factory; ../../fabric_factory_sandbox/ve/bin/python ../../fabric_factory_sandbox/ve/bin/pip install -r requirements.txt' %{'ve_bin':ve_bin})
20
22
    
21
23
def install_fabric_factory():
22
24
    """
23
25
    Add a link from site-package to factory, worker, project 
24
26
    """
25
    local('. fabric_factory_sandbox/ve/bin/activate; python fabric_factory_sandbox/fabric_factory/setup.py develop')
27
    local('cd fabric_factory_sandbox/fabric_factory; ../../%(ve_bin)s/python setup.py develop'
28
          %{'ve_bin':ve_bin})
26
29
    
27
30
28
31
def download_fabric_factory():
@@ -49,7 +52,7 @@ def run_test_suite():
49
52
    """
50
53
    Run the test suite for the Fabric Factory
51
54
    """
52
    local('. fabric_factory_sandbox/ve/bin/activate; python fabric_factory_sandbox/fabric_factory/src/project/manage.py test --settings=project.settings')
55
    local('%(ve_bin)s/python fabric_factory_sandbox/fabric_factory/src/project/manage.py test --settings=project.settings' %{'ve_bin':ve_bin})
53
56
54
57
def download_setup_and_test():
55
58
    """