-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (53 loc) · 1.17 KB
/
Copy pathMakefile
File metadata and controls
71 lines (53 loc) · 1.17 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
COMPOSE := docker compose
.PHONY: all
all: static test down
.PHONY: static
static: fmt-check check clippy
.PHONY: fmt
fmt:
cargo fmt --all
.PHONY: fmt-check
fmt-check:
cargo fmt --all -- --check
.PHONY: check
check:
cargo check --all-targets
.PHONY: clippy
clippy:
cargo clippy --all-targets -- -D warnings
.PHONY: test
test: up
cargo test
.PHONY: ccm-wrapper-tests load-balancing-tests ccm-tests
ccm-wrapper-tests:
RUSTFLAGS="--cfg ccm_tests" cargo test --test ccm_wrapper_tests -- --nocapture
load-balancing-tests:
RUSTFLAGS="--cfg ccm_tests" cargo test --test load_balancing_tests -- --nocapture
ccm-tests: ccm-wrapper-tests load-balancing-tests
.PHONY: up
up:
$(COMPOSE) up -d --wait
@echo
@echo "1 scylla node is running in the background. Use 'make down' to stop it and remove its volume."
@echo
.PHONY: down
down:
$(COMPOSE) down --remove-orphans -v
.PHONY: logs
logs:
$(COMPOSE) logs -f
.PHONY: cqlsh
cqlsh:
$(COMPOSE) exec scylla_node cqlsh -u cassandra -p cassandra
.PHONY: shell
shell:
$(COMPOSE) exec scylla_node bash
.PHONY: volumes
volumes:
docker volume ls
.PHONY: prune
prune:
docker system prune -a --volumes
.PHONY: clean
clean: down
cargo clean