-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathjustfile
63 lines (49 loc) · 1.58 KB
/
justfile
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
default:
just -l
prepare:
rustup target add wasm32-unknown-unknown
test: test-lib test-macro test-integration
test-lib:
cargo test -p casper-event-standard
test-macro:
cargo test -p casper-event-standard-macro
test-integration: build-test-wasm copy-wasm-file test-integration-only
test-integration-only:
cargo test -p integration-tests \
--test vm_tests \
--no-default-features \
--features="test-support"
build-test-wasm:
cargo build \
--release \
--target wasm32-unknown-unknown \
-p integration-tests \
--no-default-features \
--features="contract-support"
copy-wasm-file:
mkdir -p integration-tests/wasm
cp target/wasm32-unknown-unknown/release/*.wasm integration-tests/wasm
clean:
rm -rf integration-tests/wasm
cargo clean
docs:
cargo doc --no-deps --open \
--target wasm32-unknown-unknown \
-p casper-event-standard \
-p casper-event-standard-macro
clippy:
cargo clippy -p casper-event-standard \
--target wasm32-unknown-unknown -- -D warnings
cargo clippy -p casper-event-standard \
--tests -- -D warnings
cargo clippy -p integration-tests --target wasm32-unknown-unknown \
--no-default-features --features contract-support -- -D warnings
cargo clippy -p integration-tests --tests \
--no-default-features --features test-support -- -D warnings
check-lint: clippy
cargo fmt -- --check
lint: clippy
cargo fmt
release:
cargo publish -p casper-event-standard-macro && sleep 100
cargo publish -p casper-event-standard