Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (27 sloc) 712 Bytes
from __future__ import with_statement
from fabric.api import *
def push():
test()
git_dance()
def git_dance():
local('git commit -av', capture=False)
local('git pull origin master', capture=False)
local('git push origin master', capture=False)
def metapush():
with cd('~/mmp/omcs/divisi2'):
local('git pull')
with cd('~/mmp/omcs'):
git_dance()
with cd('~/mmp'):
git_dance()
def release():
push()
metapush()
local('python setup.py sdist upload')
def docs():
with cd('doc'):
local('make html', capture=False)
def test():
local('nosetests -v', capture=False)
with cd('doc'):
local('make doctest', capture=False)