forked from 3liz/qgis-pgmetadata-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.13 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
start_tests:
@echo 'Start docker compose'
@cd .docker && ./start.sh with-qgis
run_tests:
@echo 'Running tests, containers must be running'
@cd .docker && ./exec.sh
stop_tests:
@echo 'Stopping/killing containers'
@cd .docker && ./stop.sh
tests: start_tests run_tests stop_tests flake8
test_migration:
@echo 'Testing migrations'
@cd .docker && ./start.sh
@cd .docker && ./install_migrate_generate.sh
@cd .docker && ./stop.sh
schemaspy:
@echo 'Generating schemaspy documentation'
@cd .docker && ./start.sh
rm -rf docs/database
mkdir docs/database
@cd .docker && ./install_db.sh
@cd .docker && ./schemaspy.sh
@cd .docker && ./stop.sh
generate_sql:
@echo 'Generate SQL into install files'
cd pg_metadata/install/sql && ./export_database_structure_to_SQL.sh pgmetadata pgmetadata
git diff -p -R --no-ext-diff --no-color | grep -E "^(diff|(old|new) mode)" --color=never | git apply
reformat_sql:
@echo 'Reformat SQL'
@cd .docker && ./start.sh
@cd .docker && ./install_db.sh
@cd .docker && ./reformat_sql_install.sh
@cd .docker && ./stop.sh
flake8:
@echo 'Running flake8'
@flake8
processing-doc:
cd .docker && ./processing_doc.sh