mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 23:48:24 +00:00
[release] added schools to release
This commit is contained in:
parent
70e55e69ae
commit
f4593ecc60
@ -110,7 +110,7 @@ def backup_all_sites():
|
|||||||
|
|
||||||
|
|
||||||
@click.command('release')
|
@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.argument('bump-type', type=click.Choice(['major', 'minor', 'patch']))
|
||||||
@click.option('--develop', default='develop')
|
@click.option('--develop', default='develop')
|
||||||
@click.option('--master', default='master')
|
@click.option('--master', default='master')
|
||||||
|
@ -22,7 +22,8 @@ repo_map = {
|
|||||||
'frappe': 'frappe',
|
'frappe': 'frappe',
|
||||||
'erpnext': 'erpnext',
|
'erpnext': 'erpnext',
|
||||||
'erpnext_shopify': 'erpnext_shopify',
|
'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'):
|
def create_release(repo_path, version, remote='origin', develop_branch='develop', master_branch='master'):
|
||||||
|
@ -245,6 +245,10 @@ def get_git_version():
|
|||||||
return float(version)
|
return float(version)
|
||||||
|
|
||||||
def check_git_for_shallow_clone():
|
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()
|
git_version = get_git_version()
|
||||||
if git_version > 1.9:
|
if git_version > 1.9:
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user