HW12 поправил Makefile

pull/13/head
Andrey Ivanov 2020-09-04 11:40:33 +03:00 committed by Andrey Ivanov
parent 24985e49f8
commit 96a69e9833
1 changed files with 7 additions and 4 deletions

View File

@ -1,13 +1,16 @@
build:
go build -o ./bin/calendar ./src
run:
go run ./src/calendar/main.go -config ./configs/config.toml
test:
go test -race ./src/...
install-lint-deps:
(which golangci-lint > /dev/null) || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
lint: install-lint-deps
golangci-lint run ./...
.PHONY: build test lint
install-lint-deps:
go install github.com/golangci/golangci-lint/cmd/golangci-lint
.PHONY: build run test lint