Compare commits
No commits in common. "cdcac469d6a0044fbfed8dddc3fc2ea0991ee176" and "f17afbd227770b2f7d01b96a55b28e949f67d0cb" have entirely different histories.
cdcac469d6
...
f17afbd227
32
Makefile
32
Makefile
|
@ -1,32 +0,0 @@
|
||||||
# Inspired from https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/ and https://netdevops.me/2023/test-coverage-for-go-integration-tests/
|
|
||||||
BIN_DIR = $(CURDIR)/artifacts
|
|
||||||
BINARY = $(BIN_DIR)/gocustomurls
|
|
||||||
CURRENT_DIR = $(shell pwd)
|
|
||||||
CUR_TAG = $(shell git tag | sort -g | tail -1 | cut -c 2-)
|
|
||||||
VERSION_NUMBER ?= 0.0.0
|
|
||||||
|
|
||||||
ifneq ($(CI_COMMIT_TAG),)
|
|
||||||
VERSION_NUMBER := $(CI_COMMIT_TAG:v%=%)
|
|
||||||
else
|
|
||||||
VERSION_NUMBER := ${CUR_TAG}
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
go clean
|
|
||||||
|
|
||||||
.PHONY: dep
|
|
||||||
dep:
|
|
||||||
go mod tidy
|
|
||||||
|
|
||||||
.PHONY: fmt
|
|
||||||
fmt:
|
|
||||||
go fmt ./...
|
|
||||||
|
|
||||||
.PHONY: lint
|
|
||||||
lint:
|
|
||||||
golangci-lint run --timeout 3m --verbose
|
|
||||||
|
|
||||||
.PHONY: build
|
|
||||||
build:
|
|
||||||
go build -o $(BINARY)
|
|
Loading…
Reference in New Issue