-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
94 lines (68 loc) · 1.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.EXPORT_ALL_VARIABLES:
DJANGO_SETTINGS_MODULE = data_portal.settings.local
install:
@pip install -r requirements-dev.txt
@yarn install
@pre-commit install
check:
@pre-commit run --all-files
@npx yarn audit
scan:
@trufflehog --debug --only-verified git file://./ --since-commit main --branch HEAD --fail
deep: scan
@ggshield secret scan repo .
info:
@npx serverless info --stage dev
invoke:
@npx serverless invoke -f migrate --stage dev
deploy:
@npx serverless deploy --stage dev --debug='*' --verbose
up:
@docker compose up -d
down:
@docker compose down
stop:
@docker compose down
ps:
@docker compose ps
start:
@pip install -r requirements-dev.txt
@echo $$DJANGO_SETTINGS_MODULE
@python manage.py migrate
@python manage.py runserver_plus --print-sql --keep-meta-shutdown
.PHONY: syncdata, loaddata
syncdata:
@. ./loaddata.sh; sync_db_dump
loaddata:
@. ./loaddata.sh; copy_db_dump; load_db_dump; load_localstack
load_data: loaddata
reload:
@. ./loaddata.sh; copy_db_dump; load_db_dump
load_localstack:
@. ./loaddata.sh; load_localstack
test: load_localstack
@pip install -r requirements-dev.txt
@echo $$DJANGO_SETTINGS_MODULE
@python manage.py migrate
@python manage.py test
coverage: load_localstack
@pip install -r requirements-dev.txt
@echo $$DJANGO_SETTINGS_MODULE
@python manage.py migrate
@coverage run --source='.' manage.py test
report:
@coverage report -m
@coverage html
sure:
@python manage.py test data_processors.pipeline
mysql:
@docker exec -it portal_db mysql -h 0.0.0.0 -D data_portal -u root -proot
migrate:
@echo $$DJANGO_SETTINGS_MODULE
@python manage.py migrate
test_ica_mock:
@curl -s -H "Authorization: Bearer Test" -X GET http://localhost/v1/workflows/runs/wfr.anything_work | jq
test_localstack:
@curl -s http://localhost:4566/_localstack/health | jq
openapi:
@curl -s http://localhost:8000/swagger.json | jq > swagger/swagger.json