This repository has been archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
56 lines (40 loc) · 1.41 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
generate-protocols:
scripts/gen-proto
build:
cargo build
build-with-checker:
cargo build --no-default-features --features "checker"
build-with-stats:
cargo build --no-default-features --features "statistics"
build-all:
cargo build --no-default-features --features "checker statistics"
run: build
RUST_LOG=debug target/debug/risq daemon
run-dummy-seed:
cargo build --features "checker statistics dummy-seed"
target/debug/risq dummy-seed
run-alice:
./target/debug/risq d -n BtcRegtest --no-tor
run-bob:
./target/debug/risq d -p 6000 --api-port 8488 -n BtcRegtest --no-tor
check:
cargo watch -x clippy
test:
RUST_BACKTRACE=full cargo watch -s 'cargo test --no-default-features --features "checker statistics dummy-seed" -- --nocapture'
test-in-ci:
cargo clippy --all-features
cargo test --all-features --verbose --locked
integration:
cargo build --features "statistics dummy-seed"
export RISQ_BIN_DIR="$(if $(RISQ_BIN_DIR),$(RISQ_BIN_DIR),./target/debug)" && bats -t -r test/integration
build-minimal-release:
cargo build --locked --release --no-default-features --features "fail-on-warnings"
build-arm-unknown-linux-gnueabihf-release:
cargo build --locked --release --target arm-unknown-linux-gnueabihf
build-x86_64-unknown-linux-gnu-release:
cargo build --locked --release --target x86_64-unknown-linux-gnu
run-tor:
scripts/run-tor
no-of-deps:
cargo tree | grep -v '(*)' | grep -v '\[' | wc -l
.PHONY: test