-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 1.01 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
test: cache-template
cargo test --all --release -- --test-threads=1
test-all: cache-template
cargo test --all --release -- --test-threads=1
cargo test --all --release -- --ignored --test-threads=1
test-ignored: cache-template
cargo test --all --release -- --ignored --test-threads=1
test-lib: cache-template
find .fastembed_cache -name '*.lock' -delete || true
cargo test --lib -- --test-threads=1
test-integration: cache-template
cargo test --test vector_db_integration -- --test-threads=1
clean-cache:
rm -rf .fastembed_cache
fix:
cargo fix --allow-dirty --allow-staged
coverage:
cargo tarpaulin --out Html --output-dir target/tarpaulin
build:
cargo build --release
build-index:
run --bin build_index -- --index-name=test_index
cache-template:
@if [ ! -d .cache/mc-template/.git ]; then \
git clone --depth 1 https://github.com/metacontract/template.git .cache/mc-template; \
else \
cd .cache/mc-template && git pull; \
fi
test-setup:
make cache-template
cp -r .cache/mc-template ./test-tmp-template