.PHONY: all install-deps lint test unit-test integration-test fmt help

all: install-deps lint test

install-deps:
	go get -t github.com/basho-labs/riak-go-client/...

lint: install-deps
	go vet github.com/basho-labs/riak-go-client/...

unit-test: lint
	go test -v github.com/basho-labs/riak-go-client/...

integration-test: lint
	go test -v -tags=integration github.com/basho-labs/riak-go-client/...

# TODO: add integration-test
test: lint unit-test

fmt:
	gofmt -s -w .

help:
	@echo ''
	@echo ' Targets:'
	@echo '--------------------------------------------------'
	@echo ' all              - Run everything                '
	@echo ' fmt              - Format code                   '
	@echo ' lint             - Run jshint                    '
	@echo ' test             - Run unit & integration tests  '
	@echo ' unit-test        - Run unit tests                '
	@echo ' integration-test - Run integration tests         '
	@echo '--------------------------------------------------'
	@echo ''

.PHONY: all install-deps lint test unit-test integration-test fmt help

all: install-deps lint test

install-deps:
	go get -t github.com/basho-labs/riak-go-client/...

lint: install-deps
	go vet github.com/basho-labs/riak-go-client/...

unit-test: lint
	go test -v github.com/basho-labs/riak-go-client/...

integration-test: lint
	go test -v -tags=integration github.com/basho-labs/riak-go-client/...

test: unit-test integration-test

fmt:
	gofmt -s -w .

help:
	@echo ''
	@echo ' Targets:'
	@echo '--------------------------------------------------'
	@echo ' all              - Run everything                '
	@echo ' fmt              - Format code                   '
	@echo ' lint             - Run jshint                    '
	@echo ' test             - Run unit & integration tests  '
	@echo ' unit-test        - Run unit tests                '
	@echo ' integration-test - Run integration tests         '
	@echo '--------------------------------------------------'
	@echo ''

Add integration tests to the test target
Add integration tests to the test target
