forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (22 loc) · 714 Bytes
/
justfile
File metadata and controls
28 lines (22 loc) · 714 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
import '../justfiles/go.just'
# Build ldflags string
_LDFLAGSSTRING := "'" + trim(
"-X main.GitCommit=" + GITCOMMIT + " " + \
"-X main.GitDate=" + GITDATE + " " + \
"-X main.Version=" + VERSION + " " + \
"") + "'"
BINARY := "./bin/op-conductor"
# Build op-conductor binary
op-conductor: (go_build BINARY "./cmd" "-ldflags" _LDFLAGSSTRING)
# Clean build artifacts
clean:
rm -f {{BINARY}}
# Run tests
test: (go_test "./...")
MOCKERY_VERSION := "v3.2.4"
# Generate mocks
generate-mocks:
@if ! mockery; then \
echo "mock generation failed, please ensure mockery version {{MOCKERY_VERSION}} is installed"; \
echo "go install github.com/vektra/mockery/v3@{{MOCKERY_VERSION}}"; \
fi