.PHONY: test test_ci report_coverage

test:
	go test -coverprofile cover.out -covermode atomic ./...

test_ci:
	docker run --rm -v ${PWD}:/go/src/code.justin.tv/devrel/dbx -w /go/src/code.justin.tv/devrel/dbx golang:1.12.2 /bin/bash -c make test

report_coverage:
	curl -s https://codecov.internal.justin.tv/bash | bash -s - -t ${CODECOV_TOKEN} -r devrel/dbx -s ./cover.out