-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 729 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 729 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
29
30
31
32
33
SHELL := /bin/bash
GOCMD=go
GOMOD=$(GOCMD) mod
GOBUILD=$(GOCMD) build
GOTEST=$(GOCMD) test
GOLANGCI_LINT_V=v2.9.0
all:
$(info "completed running make file for golang project")
fmt:
@go fmt ./...
install-tools:
@echo "Installing golangci-lint..."
@mkdir -p .bin
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_LINT_V)/install.sh | sh -s -- -b .bin $(GOLANGCI_LINT_V)
lint: install-tools
.bin/golangci-lint run -v
tidy:
$(GOMOD) tidy -v
test:
$(GOTEST) ./... -coverprofile cp.out
test-python-integration:
$(GOTEST) -v -tags="integration,python" -timeout=10m ./pkg/ecosystems/python/pip/ -coverprofile cp.out
.PHONY: install-req fmt test test-python-integration lint tidy imports