forked from databendlabs/databend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (32 loc) · 987 Bytes
/
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
HUB ?= datafusedev
TAG ?= latest
# Setup dev toolchain
setup:
bash ./scripts/setup/dev_setup.sh
test:
cargo test
bench:
cargo bench
run:
RUST_BACKTRACE=full RUSTFLAGS="-C target-cpu=native" cargo run --bin=fuse-query --release
runquery:
RUST_BACKTRACE=full RUSTFLAGS="-C target-cpu=native" cargo run --bin=fuse-query --release
runstore:
RUST_BACKTRACE=full RUSTFLAGS="-C target-cpu=native" cargo run --bin=fuse-store --release
build:
RUSTFLAGS="-C target-cpu=native" cargo build --release
profile:
RUSTFLAGS="-g" cargo flamegraph --bin=fuse-query
fmt:
cargo fmt
lint:
cargo fmt
cargo clippy -- -D warnings
docker:
docker build --network host -f docker/Dockerfile -t ${HUB}/fuse-query:${TAG} .
runhelm:
helm upgrade --install datafuse ./charts/datafuse \
--set image.repository=${HUB}/fuse-query --set image.tag=${TAG} --set configs.mysqlPort=3308
clean:
cargo clean
.PHONY: setup test bench run runquery runstore runhelm build fmt lint docker coverage clean