-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (18 loc) · 993 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: compile_messages download_ecommerce_requirements
compile_messages:
msgfmt--check --strict --output-file payfort/locale/ar/LC_MESSAGES/django.mo payfort/locale/ar/LC_MESSAGES/django.po
OPENEDX_RELEASE ?= maple.master
download_ecommerce_requirements:
curl -L https://github.com/openedx/ecommerce/raw/open-release/$(OPENEDX_RELEASE)/requirements/test.txt -o requirements/ecommerce-$(OPENEDX_RELEASE).txt
sed -i '1i# This file has been downloaded by "make download_ecommerce_requirements"' requirements/ecommerce-$(OPENEDX_RELEASE).txt
sed -i '2i# Every thing else below this line is a copy from the openedx/ecommerce test.txt requirements file' requirements/ecommerce-$(OPENEDX_RELEASE).txt
tests: ## Run unit and integration tests
tox -e py38-tests
quality: ## Run code quality checks
tox -e py38-quality
translation.requirements:
pip install -r requirements/translation.txt
translation.extract:
i18n_tool extract --no-segment
translation.compile:
i18n_tool generate