generated from C4T-BuT-S4D/ad-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 857 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
.PHONY: lint-go
lint-go:
golangci-lint run -v --config .golangci.yml
.PHONY: lint-proto
lint-proto:
cd proto && buf lint
.PHONY: lint
lint: lint-go lint-proto
.PHONY: goimports
goimports:
gofancyimports fix --local github.com/c4t-but-s4d/neo -w $(shell find . -type f -name '*.go' -not -path "./proto/*")
.PHONY: test
test:
go test -race -timeout 1m ./...
.PHONY: validate
validate: lint test
.PHONY: proto
proto:
cd proto && buf generate
fastmod --accept-all 'from bluwal import' 'from proto.bluwal import' --dir proto/python --iglob '*.py'
.PHONY: repo-proto-not-for-participants
repo-proto-not-for-participants: proto
rm -rf ../../checkers/bluwal/proto
cp -r proto/python ../../checkers/bluwal/proto
@echo "Yeah, we even have sploit(s) for this service!"
rm -rf ../../sploits/bluwal/proto
cp -r proto/python ../../sploits/bluwal/proto