Commit 31ac8f5c by ayub-khan Committed 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 version
parent 7329e56d
......@@ -23,6 +23,7 @@ install:
script:
- docker exec -t discovery bash -c 'source /edx/app/discovery/discovery_env && cd /edx/app/discovery/discovery/ && make docs'
- docker exec -t discovery bash -c 'source /edx/app/discovery/discovery_env && cd /edx/app/discovery/discovery/ && make check_translations_up_to_date'
- docker exec -t discovery bash -c 'source /edx/app/discovery/discovery_env && cd /edx/app/discovery/discovery/ && make validate_translations'
- docker exec -t discovery bash -c 'source /edx/app/discovery/discovery_env && cd /edx/app/discovery/discovery/ && make clean_static'
- docker exec -t discovery bash -c 'source /edx/app/discovery/discovery_env && cd /edx/app/discovery/discovery/ && make static'
......
......@@ -3,7 +3,7 @@ NODE_BIN=$(CURDIR)/node_modules/.bin
.PHONY: accept clean clean_static compile_translations detect_changed_source_translations dummy_translations extract_translations \
fake_translations help html_coverage migrate open-devstack production-requirements pull_translations quality requirements.js \
requirements start-devstack static stop-devstack test validate validate_translations docs static.dev static.watch
requirements start-devstack static stop-devstack test validate check_translations_up_to_date docs static.dev static.watch
include .travis/docker.mk
......@@ -97,7 +97,10 @@ accept: ## Run acceptance tests
detect_changed_source_translations: ## Check if translation files are up-to-date
cd course_discovery && i18n_tool changed
validate_translations: fake_translations detect_changed_source_translations ## Install fake translations and check if translation files are up-to-date
validate_translations: ## Check if translation files are valid
cd course_discovery && i18n_tool validate -v -ca
check_translations_up_to_date: fake_translations detect_changed_source_translations ## Install fake translations and check if translation files are up-to-date
docs:
cd docs && make html
......@@ -6,7 +6,7 @@ django-debug-toolbar==1.8
django-elasticsearch-debug-toolbar==1.2.0
# i18n
transifex-client==0.12.2
edx-i18n-tools==0.4.2
edx-i18n-tools==0.4.4
# docker devstack
docker-compose>=1.7.1,<2.0.0
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