-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathjustfile
62 lines (49 loc) · 1.61 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
update-submodules:
git submodule update --recursive --init
clean-emulator:
make -C machine/emulator clean depclean distclean
download-deps:
just -f ./test/programs/justfile download-deps
build-programs:
just -f ./test/programs/justfile build-programs
setup: update-submodules clean-emulator download-deps build-programs
build-consensus:
just -f ./cartesi-rollups/contracts/justfile build
clean-consensus-bindings:
just -f ./cartesi-rollups/contracts/justfile clean-bindings
bind-consensus:
just -f ./cartesi-rollups/contracts/justfile bind
build-prt:
just -f ./prt/contracts/justfile build
clean-prt-bindings:
just -f ./prt/contracts/justfile clean-bindings
bind-prt:
just -f ./prt/contracts/justfile bind
build-smart-contracts: build-consensus build-prt
bind: bind-consensus bind-prt
clean-bindings: clean-consensus-bindings clean-prt-bindings
fmt-rust-workspace: bind
cargo fmt
check-fmt-rust-workspace: bind
cargo fmt --check
check-rust-workspace: bind
cargo check
test-rust-workspace: bind
cargo test
build-rust-workspace *ARGS: bind
cargo build {{ARGS}}
build-release-rust-workspace *ARGS: bind
cargo build --release {{ARGS}}
build: build-smart-contracts bind build-rust-workspace
build-docker-image TAG="dave:dev":
docker build -f test/Dockerfile -t {{TAG}} .
run-dockered +CMD: build-docker-image
docker run -it --rm --name dave-node dave:dev {{CMD}}
exec-dockered +CMD:
docker exec dave-node {{CMD}}
test-rollups-echo:
just -f ./prt/tests/rollups/justfile test-echo
view-rollups-echo:
just -f ./prt/tests/rollups/justfile read-node-logs
hello:
echo $(echo "Hello")