forked from ONSdigital/eq-questionnaire-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (45 loc) · 1.34 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
clean:
rm -rf schemas
rm -rf templates/components
rm -rf templates/layout
load-schemas:
./scripts/load_release.sh onsdigital/eq-questionnaire-schemas v0.1.3
load-templates:
./scripts/load_release.sh onsdigital/design-system 17.0.0
build: load-templates
make translate
lint:
pipenv run ./scripts/run_lint_python.sh
test:
pipenv run ./scripts/run_tests.sh
test-unit:
pipenv run ./scripts/run_tests_unit.sh
test-functional:
pipenv run ./scripts/run_tests_functional.sh
validate-test-schemas:
pipenv run ./scripts/validate_test_schemas.sh
translation-templates:
pipenv run python -m scripts.extract_translation_templates
test-translation-templates:
pipenv run python -m scripts.extract_translation_templates --test
translate:
pipenv run pybabel compile -d app/translations
run-validator:
pipenv run ./scripts/run_validator.sh
run: build
ln -sf .development.env .env
pipenv run flask run
gunicorn:
ln -sf .development.env .env
pipenv run ./run_gunicorn.sh
dev-compose-up:
docker-compose pull eq-questionnaire-launcher
docker-compose -f docker-compose-dev-mac.yml up -d
dev-compose-up-linux:
docker-compose -f docker-compose-dev-linux.yml up -d
dev-compose-down:
docker-compose -f docker-compose-dev-mac.yml down
dev-compose-down-linux:
docker-compose -f docker-compose-dev-linux.yml down
profile:
pipenv run python profile_application.py