forked from wboayue/rust-ibapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (29 loc) · 980 Bytes
/
justfile
File metadata and controls
37 lines (29 loc) · 980 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
# Compile proto files to Rust (output: src/proto/protobuf.rs)
proto:
cargo run -p proto-gen
# Generate and open coverage report using cargo-llvm-cov
cover:
cargo llvm-cov --all-features --html --open
# Tags repo with specified version
tag VERSION:
echo "Tagging repo with version {{VERSION}}"
git tag {{VERSION}} -m "Version {{VERSION}}"
git push origin {{VERSION}}
# Lists all available versions
versions:
@git tag
# Run tests for both sync and async features
test:
@echo "Running sync tests..."
cargo test --features sync
@echo ""
@echo "Running async tests..."
cargo test --features async
# Run sync integration tests (requires running gateway)
integration-sync:
cargo test -p ibapi-integration-sync
# Run async integration tests (requires running gateway)
integration-async:
cargo test -p ibapi-integration-async
# Run all integration tests (requires running gateway)
integration: integration-sync integration-async