Skip to content

Commit

Permalink
build(just): WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma committed Nov 22, 2024
1 parent 5333397 commit c6ef3c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ submodules: ## Updates git submodules


op-node: ## Builds op-node binary
just $(JUSTFLAGS) ./op-node/op-node
just $(JUSTFLAGS) PARALLEL=8 ./op-node/op-node
.PHONY: op-node

generate-mocks-op-node: ## Generates mocks for op-node
Expand Down
7 changes: 6 additions & 1 deletion just/deprecated.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
ifeq (, $(shell which tput))
# CI environment typically does not support tput.
banner-style = $1
else ifeq (, $(TERM))
# Terminal type not set, so tput would fail.
banner-style = $1
else
# print in bold red to bring attention.
banner-style = $(shell tput bold)$(shell tput setaf 1)$1$(shell tput sgr0)
Expand All @@ -12,8 +15,10 @@ include $(SELF_DIR)/flags.mk
define make-deprecated-target
$1:
@echo
@printf %s\\n '$(call banner-style,"make $1 $(JUSTFLAGS)" is deprecated. Please use "just $(JUSTFLAGS) $1" instead.)'
@printf %s\\n '$(call banner-style,Deprecated call: make $1 $(JUSTFLAGS))'
@printf %s\\n '$(call banner-style,Use this instead: just $(JUSTFLAGS) $1)'
@echo
just -n $(JUSTFLAGS) $1
just $(JUSTFLAGS) $1
endef

Expand Down
4 changes: 2 additions & 2 deletions op-node/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ test: (go_test "./...")

# Run fuzz tests
[private]
fuzz_task FUZZ TIME='10s': (go_fuzz FUZZ TIME "./rollup/derive")
node_fuzz_task FUZZ TIME='10s': (go_fuzz FUZZ TIME "./rollup/derive")

fuzz:
#!{{MAP_JUST}} fuzz_task
#!{{MAP_JUST}} node_fuzz_task
FuzzL1InfoBedrockRoundTrip
FuzzL1InfoEcotoneRoundTrip
FuzzL1InfoAgainstContract
Expand Down

0 comments on commit c6ef3c1

Please sign in to comment.