mtchavez/skiplist

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
ROOT := $(CURDIR)
GOPKGS = \
        golang.org/x/tools/cmd/cover \
        github.com/golang/lint/golint \
        github.com/golang/dep/cmd/dep

default: test

deps:
    @go get -u -v $(GOPKGS)
    @dep ensure

lint:
    @echo "[Lint] running golint"
    @golint

vet:
    @echo "[Vet] running go vet"
    @go vet

ci: deps vet lint test

test:
    @echo "[Test] running tests"
    @go test -v ./... -cover -coverprofile=c.out

.PHONY: default golint test vet deps