2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 15:38:25 +00:00

[release] added schools to release

This commit is contained in:
Anand Doshi 2016-04-08 11:48:39 +05:30
parent 70e55e69ae
commit f4593ecc60
3 changed files with 7 additions and 2 deletions

View File

@ -110,7 +110,7 @@ def backup_all_sites():
@click.command('release')
@click.argument('app', type=click.Choice(['frappe', 'erpnext', 'erpnext_shopify', 'paypal_integration']))
@click.argument('app', type=click.Choice(['frappe', 'erpnext', 'erpnext_shopify', 'paypal_integration', 'schools']))
@click.argument('bump-type', type=click.Choice(['major', 'minor', 'patch']))
@click.option('--develop', default='develop')
@click.option('--master', default='master')

View File

@ -22,7 +22,8 @@ repo_map = {
'frappe': 'frappe',
'erpnext': 'erpnext',
'erpnext_shopify': 'erpnext_shopify',
'paypal_integration': 'paypal_integration'
'paypal_integration': 'paypal_integration',
'schools': 'schools'
}
def create_release(repo_path, version, remote='origin', develop_branch='develop', master_branch='master'):

View File

@ -245,6 +245,10 @@ def get_git_version():
return float(version)
def check_git_for_shallow_clone():
from .config.common_site_config import get_config
if get_config(".").get('release_bench'):
return False
git_version = get_git_version()
if git_version > 1.9:
return True