SHELL := /bin/bash

# Slower running fresh command to ensure clean code
fresh_run: test vet lint errcheck install
# Faster running fresh command for quicker iterations
fresh_sprint: install

install:
	@go install

test:
	@go test -v ./...

lint:
	@golint ./...

errcheck:
	@errcheck -ignoretests -ignore 'Close' -verbose ./...

vet:
	@go vet ./...

glide: setup
	retool do glide update --strip-vendor
	retool do glide-vc --only-code --no-tests --use-lock-file

setup:
	go get -u github.com/twitchtv/retool
