forked from stellar/rs-soroban-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 967 Bytes
/
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
all: build test test-opt
test:
cargo hack --locked --each-feature test
test-opt:
cargo hack --locked --each-feature test --profile test-opt
build:
cargo hack --locked --each-feature clippy
cargo hack --locked clippy --target wasm32-unknown-unknown
# We use "run" to run the soroban-env-host/src/bin/main.rs
# entrypoint, which both excludes dev-deps (noisy) and
# actually includes soroban-env-host itself (rather than
# just its deps). We want to catch ourselves using APIs
# too!
check-apis:
cargo acl run
watch:
cargo watch --clear --watch-when-idle --shell '$(MAKE)'
fmt:
cargo fmt --all
clean:
cargo clean
regenerate-test-wasms:
make -C soroban-test-wasms regenerate-test-wasms
reobserve-tests:
UPDATE_OBSERVATIONS=1 cargo test --locked -p soroban-env-host --features testutils --profile test-opt
# Requires: `cargo install cargo-llvm-cov`
coverage:
rm -f lcov.info
cargo llvm-cov test --all-features --tests --lcov --output-path=lcov.info