pkg := code.justin.tv/foundation/history-admin
mnt := /build/go/src/$(pkg)
docker := docker run --rm -v $(CURDIR):$(mnt) -w $(mnt)
go-img := docker-registry.internal.justin.tv/devtools/bionic/go1.11.4
go := $(docker) $(go-img)
go-integration := $(docker) -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY $(go-img)
aws-mock := mockery -note 'Code Generated DO NOT EDIT' -all -output internal/mocks -dir vendor/github.com/aws/aws-sdk-go/service

test:
	$(go) go test -short ./...
integration:
	$(go-integration) go test ./...
mocks:
	$(aws-mock)/dynamodb/dynamodbiface
