forked from fleek-network/ursa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (43 loc) · 1 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
version:
cargo --version
rustc --version
@echo "RUSTC_WRAPPER=$${RUSTC_WRAPPER}"
sccache --show-stats || true
run: version
cargo run --bin cli
install: version
cargo install --locked --path crates/ursa --force
build: version
cargo build --release --bin ursa
all: build install
docker-build:
docker build -t ursa -f ./Dockerfile .
docker-run:
docker run -p 4069:4069 -p 4070:4070 -p 6009:6009 -p 8070:8070 --name ursa-cli -it ursa
compose-up:
docker-compose -f infra/ursa/docker-compose.yml up
compose-down:
docker-compose -f infra/ursa/docker-compose.yml down
# docker run ursa
docker: docker-build docker-run
# Run unit tests
test:
cargo test --all
# Generate rust docs
doc:
cargo doc --no-deps
# Format all sources
fmt:
cargo fmt -- --check
# Run clippy on the sources
clippy:
cargo clippy --locked -- -D warnings
# Deep clean
clean:
cargo clean
rm -rf target
# Passive check
check:
cargo check --all --all-targets --all-features
cargo fmt -- --check
cargo clippy --locked -- -D warnings