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/eo
|
||||
i18n_tool validate
|
||||
paver i18n_compilejs
|
||||
|
||||
|
||||
detect_changed_source_translations: ## check if translation files are up-to-date
|
||||
i18n_tool changed
|
||||
|
||||
@@ -91,17 +91,13 @@ def i18n_dummy():
|
||||
@task
|
||||
@needs(
|
||||
"pavelib.prereqs.install_prereqs",
|
||||
"pavelib.i18n.i18n_validate_gettext",
|
||||
)
|
||||
@cmdopts([
|
||||
("settings=", "s", "The settings to use (defaults to devstack)"),
|
||||
])
|
||||
@timed
|
||||
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.
|
||||
for system in ['lms', 'cms']:
|
||||
|
||||
@@ -185,6 +185,8 @@ class TestI18nCompileJS(PaverTestCase):
|
||||
"""
|
||||
Test the "i18n_compilejs" task.
|
||||
"""
|
||||
Env.TEST_SETTINGS = 'devstack_docker'
|
||||
|
||||
self.reset_task_messages()
|
||||
os.environ['NO_PREREQ_INSTALL'] = "true"
|
||||
call_task('pavelib.i18n.i18n_compilejs', options={"settings": Env.TEST_SETTINGS})
|
||||
|
||||
Reference in New Issue
Block a user