-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (30 loc) · 933 Bytes
/
justfile
File metadata and controls
40 lines (30 loc) · 933 Bytes
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
default:
@just --choose
clean:
cargo clean
fmt:
cargo fmt -- --config unstable_features=true --config wrap_comments=true --config comment_width=100
lib-test:
cargo test --lib
cli-test:
cargo test --bin lndk-cli
clippy:
cargo clippy
itest:
#!/usr/bin/env bash
TMP_DIR=${TMPDIR:-/tmp}
git submodule update --init --recursive
cd lnd/cmd/lnd; go build -tags="peersrpc signrpc walletrpc dev" -o $TMP_DIR/lndk-tests/bin/lnd-itest
RUSTFLAGS="--cfg itest" cargo test --features itest --test '*' -- --test-threads=1 --nocapture
test:
@just lib-test
@just cli-test
test-all:
@just lib-test
@just cli-test
@just itest
fetch-external-protos:
#!/usr/bin/env bash
EXTERNAL_DIR="proto/external"
mkdir -p "${EXTERNAL_DIR}/google/rpc"
curl -sSfL -o "${EXTERNAL_DIR}/google/rpc/error_details.proto" "https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/error_details.proto"