Removing paver command
This is not needed in Makefile as all the logic and invocation of compilejs would be done via ecommerce-script repo. PROD-960
This commit is contained in:
2
Makefile
2
Makefile
@@ -51,7 +51,7 @@ pull_translations: ## pull translations from Transifex
|
|||||||
git clean -fdX conf/locale/rtl
|
git clean -fdX conf/locale/rtl
|
||||||
git clean -fdX conf/locale/eo
|
git clean -fdX conf/locale/eo
|
||||||
i18n_tool validate
|
i18n_tool validate
|
||||||
paver i18n_compilejs
|
|
||||||
|
|
||||||
detect_changed_source_translations: ## check if translation files are up-to-date
|
detect_changed_source_translations: ## check if translation files are up-to-date
|
||||||
i18n_tool changed
|
i18n_tool changed
|
||||||
|
|||||||
@@ -91,17 +91,13 @@ def i18n_dummy():
|
|||||||
@task
|
@task
|
||||||
@needs(
|
@needs(
|
||||||
"pavelib.prereqs.install_prereqs",
|
"pavelib.prereqs.install_prereqs",
|
||||||
"pavelib.i18n.i18n_validate_gettext",
|
|
||||||
)
|
)
|
||||||
@cmdopts([
|
|
||||||
("settings=", "s", "The settings to use (defaults to devstack)"),
|
|
||||||
])
|
|
||||||
@timed
|
@timed
|
||||||
def i18n_compilejs(options):
|
def i18n_compilejs(options):
|
||||||
"""
|
"""
|
||||||
Generating djangojs.mo file using django-statici18n
|
Generating djangojs.js files using django-statici18n
|
||||||
"""
|
"""
|
||||||
settings = options.get('settings', DEFAULT_SETTINGS)
|
settings = 'devstack_docker'
|
||||||
|
|
||||||
# Generate static i18n JS files.
|
# Generate static i18n JS files.
|
||||||
for system in ['lms', 'cms']:
|
for system in ['lms', 'cms']:
|
||||||
|
|||||||
@@ -185,6 +185,8 @@ class TestI18nCompileJS(PaverTestCase):
|
|||||||
"""
|
"""
|
||||||
Test the "i18n_compilejs" task.
|
Test the "i18n_compilejs" task.
|
||||||
"""
|
"""
|
||||||
|
Env.TEST_SETTINGS = 'devstack_docker'
|
||||||
|
|
||||||
self.reset_task_messages()
|
self.reset_task_messages()
|
||||||
os.environ['NO_PREREQ_INSTALL'] = "true"
|
os.environ['NO_PREREQ_INSTALL'] = "true"
|
||||||
call_task('pavelib.i18n.i18n_compilejs', options={"settings": Env.TEST_SETTINGS})
|
call_task('pavelib.i18n.i18n_compilejs', options={"settings": Env.TEST_SETTINGS})
|
||||||
|
|||||||
Reference in New Issue
Block a user