-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (24 loc) · 922 Bytes
/
Makefile
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
all: install
LD_FLAGS = -w -s
BUILD_FLAGS := -ldflags '$(LD_FLAGS)'
build:
@echo "Building subnode"
@go build -mod readonly $(BUILD_FLAGS) -o build/subnode main.go
test:
@echo "Testing basic"
@go test -mod readonly --timeout=10m $(BUILD_FLAGS) `go list ./... |grep -v github.com/notional-labs/subnode/test`
#test-osmosis:
# @echo "Testing subnode with default osmosis config"
# @go test -mod readonly --timeout=10m -ldflags '$(LD_FLAGS) -X github.com/notional-labs/subnode/test.Chain=osmosis' ./test
test-evmos:
@echo "Testing subnode with evmos config"
@go test -p 1 -mod readonly --timeout=10m -ldflags '$(LD_FLAGS) -X github.com/notional-labs/subnode/test.Chain=evmos' ./test
lint:
@echo "Running golangci-lint"
golangci-lint run --timeout=10m
install:
@echo "Installing subnode"
@go install -mod readonly $(BUILD_FLAGS) ./...
clean:
rm -rf build
.PHONY: all lint test race msan tools clean build