-
-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (55 loc) · 1.71 KB
/
Copy pathMakefile
File metadata and controls
80 lines (55 loc) · 1.71 KB
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
JUST_INSTALL_HINT = The 'just' command is required. Install it with: uv tool install rust-just
.DEFAULT_GOAL := up
MYSQL_HOST ?= 127.0.0.1
MYSQL_PORT ?= 3306
MYSQL_PASS ?= 123456
POSTGRES_HOST ?= 127.0.0.1
POSTGRES_PORT ?= 5432
POSTGRES_PASS ?= 123456
.PHONY: ensure-just up deps _style style _codeqc codeqc _check check _lint lint test test_sqlite test_mysql test_postgres test_postgres_vector test_psycopg _testall testall report _build build ci
ensure-just:
@command -v just >/dev/null 2>&1 || (echo "$(JUST_INSTALL_HINT)" >&2; exit 1)
up: ensure-just
@just up
deps: ensure-just
@just deps "$(options)"
_style: ensure-just
@just _style
style: ensure-just
@just style
_codeqc: ensure-just
@just _codeqc
codeqc: ensure-just
@just codeqc
_check: ensure-just
@just _check
check: ensure-just
@just check
_lint: ensure-just
@just _lint
lint: ensure-just
@just lint
test: ensure-just
@just test
test_sqlite: ensure-just
@just test_sqlite
test_mysql: ensure-just
@MYSQL_HOST="$(MYSQL_HOST)" MYSQL_PORT="$(MYSQL_PORT)" MYSQL_PASS="$(MYSQL_PASS)" just test_mysql
test_postgres: ensure-just
@POSTGRES_HOST="$(POSTGRES_HOST)" POSTGRES_PORT="$(POSTGRES_PORT)" POSTGRES_PASS="$(POSTGRES_PASS)" just test_postgres
test_postgres_vector: ensure-just
@POSTGRES_HOST="$(POSTGRES_HOST)" POSTGRES_PORT="$(POSTGRES_PORT)" POSTGRES_PASS="$(POSTGRES_PASS)" just test_postgres_vector
test_psycopg: ensure-just
@POSTGRES_HOST="$(POSTGRES_HOST)" POSTGRES_PORT="$(POSTGRES_PORT)" POSTGRES_PASS="$(POSTGRES_PASS)" just test_psycopg
_testall: ensure-just
@just _testall
testall: ensure-just
@just testall
report: ensure-just
@just report
_build: ensure-just
@just _build
build: ensure-just
@just build
ci: ensure-just
@just ci