-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
79 lines (53 loc) · 2.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
run-keygen:
cargo run -p poker_keygen --release
test-eval:
cargo test -p poker_eval --lib --release
cargo test -p poker_eval --doc --release
test-eval-vv:
cargo test -p poker_eval --lib --release -- --nocapture
test-server:
cargo test -p poker_server --release
build:
cargo build --release
show-keys:
cargo run -p poker_eval --bin show-keys --release
tactical:
cargo run -p poker_eval --bin tactical --release
server $RUST_LOG="info":
cargo run -p poker_server --release
request-healthz:
curl http://localhost:3000/healthz
request-config:
curl http://localhost:3000/config
request-stats-five:
curl http://localhost:3000/stats-five
request-stats-seven:
curl http://localhost:3000/stats-seven
request-rank-five-sample:
curl -X POST -H "Content-Type: application/json" -d '{"hands":[[8,29,4,11,32],[9,30,5,12,33]]}' http://localhost:3000/rank-five
request-rank-seven-sample:
curl -X POST -H "Content-Type: application/json" -d '{"hands":[[8,29,4,11,32,18,19],[9,30,5,12,33,19,20]]}' http://localhost:3000/rank-seven
request-calc-det-sample-ok:
curl -X POST -H "Content-Type: application/json" -d '{"players":[[8,29], [4,11]],"table":[]}' http://localhost:3000/calc-det
request-calc-det-sample-error-1:
curl -X POST -H "Content-Type: application/json" -d '{"players":[[8,29,18], [4,11]],"table":[20,21]}' http://localhost:3000/calc-det
request-calc-det-sample-error-2:
curl -X POST -H "Content-Type: application/json" -d '{"players":[[8,29], [4,11]],"table":[20,21]}' http://localhost:3000/calc-det
request-calc-mc-sample-1:
curl -X POST -H "Content-Type: application/json" -d '{"players":[[8,9],[11],[]],"table":[15,47,23,33],"nb_game":100000}' http://localhost:3000/calc-mc
request-calc-mc-sample-2:
curl -X POST -H "Content-Type: application/json" -d '{"players":[[8,9],[11],[]],"table":[15,47,23,33],"nb_game":100000000}' http://localhost:3000/calc-mc
build-doc:
cargo doc --workspace --lib --bin poker_keygen --bin poker_server --no-deps --release
doc-live-poker_keygen $PKG="poker_keygen":
cargo watch --watch $PKG -s 'cargo doc --no-deps -p $PKG'
doc-live-poker_eval $PKG="poker_eval":
cargo watch --watch $PKG -s 'cargo doc --no-deps -p $PKG'
doc-live-poker_server $PKG="poker_server":
cargo watch --watch $PKG -s 'cargo doc --no-deps -p $PKG'
serve-doc:
browser-sync start --port 3009 --directory --server target/doc --ss target/doc --watch target/doc --no-open
publish-poker_eval:
cargo publish -p poker_eval --dry-run
publish-poker_server:
cargo publish -p poker_server --dry-run --allow-dirty