mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
21 lines
355 B
Makefile
21 lines
355 B
Makefile
NAME := gilded-rose
|
|
|
|
# set default compiler
|
|
GO := go
|
|
|
|
.PHONY: prebuild
|
|
prebuild:
|
|
|
|
all: lint test
|
|
|
|
.PHONY: lint
|
|
lint: ## Verifies `golint` passes.
|
|
@echo "+ $@"
|
|
@golint ./... | grep -v '.pb.go:' | grep -v vendor | tee /dev/stderr
|
|
|
|
.PHONY: test
|
|
test: prebuild ## Runs the go tests.
|
|
@echo "+ $@"
|
|
@$(GO) test -v $(shell $(GO) list ./... | grep -v vendor)
|
|
|