fuzzyworld

template / ci-testing / files / Makefile

Branch ci-testing · default branch · all branches

Makefile

Blame: the commit that last changed each line · file · history

763c260d 2022-10-06 Pavel Safronov1.PHONY: test
2
b3de39c0 2022-11-16 Pavel Safronov3all: build test lint install
ae89a42a 2022-11-02 Pavel Safronov4
5c81baec 2022-11-20 Pavel Safronov5prep:
6 go mod tidy
7
75a066b2 2022-11-16 Pavel Safronov8clean:
9 go clean
10
5c81baec 2022-11-20 Pavel Safronov11build: prep
763c260d 2022-10-06 Pavel Safronov12 go build .
13
75a066b2 2022-11-16 Pavel Safronov14lint: build
d98300ca 2022-11-20 Pavel Safronov15 go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
16 golangci-lint --version
14a9913e 2022-11-16 Pavel Safronov17 golangci-lint run
75a066b2 2022-11-16 Pavel Safronov18
19test: build
9b0177be 2022-11-19 Pavel Safronov20 go test -v ./... -coverprofile="./test-coverage.out"
75a066b2 2022-11-16 Pavel Safronov21
22test_coverage: test
9b0177be 2022-11-19 Pavel Safronov23 go tool cover -html="./test-coverage.out" -o "./test-coverage.html"
75a066b2 2022-11-16 Pavel Safronov24
25test_coverage_html: test_coverage
9b0177be 2022-11-19 Pavel Safronov26 open "./test-coverage.html"
75a066b2 2022-11-16 Pavel Safronov27
28install: build test lint
52e9ad7c 2022-11-08 Pavel Safronov29 go install
30 template reset
763c260d 2022-10-06 Pavel Safronov31
95a5c62c 2022-10-26 Pavel Safronov32uninstall:
b67e39c6 2022-10-26 Pavel Safronov33 go clean -i gitlab.com/fuzzy-rp/template...
95a5c62c 2022-10-26 Pavel Safronov34
b3de39c0 2022-11-16 Pavel Safronov35release-dry-run: build test lint
36 go install github.com/goreleaser/goreleaser@latest
37 goreleaser release --snapshot --rm-dist
38
39release-local: build test lint
40 go install github.com/goreleaser/goreleaser@latest
41 goreleaser build --single-target