Commit 981fa7d9 by ayub-khan

Updated travis validate translations

Updated travis to use the i18n-tools validate
to validate translations in pullrequests.
LEARNER-2556

updated i18n-tool to latest
parent 16d449c6
...@@ -14,6 +14,7 @@ install: ...@@ -14,6 +14,7 @@ install:
before_script: before_script:
- npm install -g gulp-cli - npm install -g gulp-cli
script: script:
- make validate_translations
- make test-all - make test-all
- make test-js - make test-js
after_success: after_success:
......
...@@ -91,9 +91,12 @@ pull_translations: ## pull translations from Transifex ...@@ -91,9 +91,12 @@ pull_translations: ## pull translations from Transifex
push_translations: ## push source translation files (.po) from Transifex push_translations: ## push source translation files (.po) from Transifex
tx push -s tx push -s
validate_translations: ## Test translation files
cd edx_proctoring && i18n_tool validate -v
dummy_translations: ## generate dummy translation (.po) files dummy_translations: ## generate dummy translation (.po) files
cd edx_proctoring && i18n_tool dummy cd edx_proctoring && i18n_tool dummy
build_dummy_translations: extract_translations dummy_translations compile_translations ## generate and compile dummy translation files build_dummy_translations: extract_translations dummy_translations compile_translations ## generate and compile dummy translation files
validate_translations: build_dummy_translations detect_changed_source_translations ## validate translations check_translations_up_to_date: build_dummy_translations detect_changed_source_translations ## validate translations
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
diff-cover # Changeset diff test coverage diff-cover # Changeset diff test coverage
edx_lint==0.5.5 # Python code linting rules edx_lint==0.5.5 # Python code linting rules
edx-i18n-tools # For i18n_tool dummy edx-i18n-tools==0.4.4 # For i18n_tool dummy
pip-tools # Requirements file management pip-tools # Requirements file management
tox # virtualenv management for tests tox # virtualenv management for tests
tox-battery # Makes tox aware of requirements file changes tox-battery # Makes tox aware of requirements file changes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment