-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (50 loc) · 1.59 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
include sbroad-cartridge/Makefile
all: build
TARGET_ROOT=target
CARTRIDGE_MODULE=sbroad-cartridge
build:
cargo build --release
build_debug:
cargo build
bench:
make clean
cargo bench --features mock
bench_check:
make clean
cargo bench --features mock --no-run
clean:
rm -rf $(TARGET_ROOT)/release/libsbroad*
rm -rf $(TARGET_ROOT)/release/build/libsbroad*
rm -rf $(TARGET_ROOT)/release/deps/libsbroad*
rm -rf $(TARGET_ROOT)/release/incremental/libsbroad*
rm -rf $(TARGET_ROOT)/debug/libsbroad*
rm -rf $(TARGET_ROOT)/debug/build/libsbroad*
rm -rf $(TARGET_ROOT)/debug/deps/libsbroad*
rm -rf $(TARGET_ROOT)/debug/incremental/libsbroad*
lint:
cargo fmt --all -- --check
cargo clippy -- --deny clippy::all
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
cargo audit -f audit.toml
./deps.sh
./.rocks/bin/luacheck .
test:
cargo test --features mock -vv
test_all: test bench_check test_integration
release_rock:
cd $(CARTRIDGE_MODULE) \
&& echo "Build release ${CI_COMMIT_TAG}" \
&& tarantoolctl rocks new_version --tag ${CI_COMMIT_TAG} \
&& tarantoolctl rocks install sbroad-${CI_COMMIT_TAG}-1.rockspec \
&& tarantoolctl rocks pack sbroad-${CI_COMMIT_TAG}-1.rockspec \
&& mv sbroad*rock .. \
&& rm -rf sbroad-${CI_COMMIT_TAG}-1.rockspec
stress:
test=$(test) docker-compose -f docker-compose.yml down
test=$(test) docker-compose -f docker-compose.yml up --abort-on-container-exit --exit-code-from k6
test=$(test) docker-compose -f docker-compose.yml down
stress_all:
$(MAKE) stress test=projection
$(MAKE) stress test=projection_wide
$(MAKE) stress test=insert
$(MAKE) stress test=groupby