template / windows / files / Makefile
Branch windows · default branch · all branches
Makefile
fe86bedc 2022-11-17 Pavel Safronov | 1 | ifeq ($(OS),Windows_NT) |
| 2 | SHELL := pwsh.exe | |
| 3 | else | |
| 4 | SHELL := pwsh | |
| 5 | endif | |
| 6 | .SHELLFLAGS := -Command | |
763c260d 2022-10-06 Pavel Safronov | 7 | |
fe86bedc 2022-11-17 Pavel Safronov | 8 | all: install |
ae89a42a 2022-11-02 Pavel Safronov | 9 | |
75a066b2 2022-11-16 Pavel Safronov | 10 | clean: |
| 11 | go clean | |
| 12 | ||
763c260d 2022-10-06 Pavel Safronov | 13 | build: |
14a9913e 2022-11-16 Pavel Safronov | 14 | go mod tidy |
763c260d 2022-10-06 Pavel Safronov | 15 | go build . |
| 16 | ||
75a066b2 2022-11-16 Pavel Safronov | 17 | lint: build |
fe86bedc 2022-11-17 Pavel Safronov | 18 | golangci-lint version |
14a9913e 2022-11-16 Pavel Safronov | 19 | golangci-lint run |
75a066b2 2022-11-16 Pavel Safronov | 20 | |
fe86bedc 2022-11-17 Pavel Safronov | 21 | .PHONY: test |
75a066b2 2022-11-16 Pavel Safronov | 22 | test: build |
fe86bedc 2022-11-17 Pavel Safronov | 23 | New-Item -Path .\test\ -ItemType Directory -Force |
| 24 | go test -v -coverprofile="./test/coverage.out" | |
75a066b2 2022-11-16 Pavel Safronov | 25 | go tool cover -html="./test/coverage.out" -o "./test/coverage.html" |
fe86bedc 2022-11-17 Pavel Safronov | 26 | start "./test/coverage.html" |
75a066b2 2022-11-16 Pavel Safronov | 27 | |
| 28 | install: build test lint | |
52e9ad7c 2022-11-08 Pavel Safronov | 29 | go install |
| 30 | template reset | |
763c260d 2022-10-06 Pavel Safronov | 31 | |
95a5c62c 2022-10-26 Pavel Safronov | 32 | uninstall: |
b67e39c6 2022-10-26 Pavel Safronov | 33 | go clean -i gitlab.com/fuzzy-rp/template... |
95a5c62c 2022-10-26 Pavel Safronov | 34 | |
b3de39c0 2022-11-16 Pavel Safronov | 35 | release-dry-run: build test lint |
| 36 | go install github.com/goreleaser/goreleaser@latest | |
| 37 | goreleaser release --snapshot --rm-dist | |
| 38 | ||
| 39 | release-local: build test lint | |
| 40 | go install github.com/goreleaser/goreleaser@latest | |
| 41 | goreleaser build --single-target |