dbmate/Makefile
Adrian Macneil edb027f6e9 Run tests in serial
Prevents race conditions when creating/dropping databases.

See: http://stackoverflow.com/questions/15721238/go-serial-execution-of-package-tests
2015-11-30 18:36:24 -08:00

14 lines
209 B
Makefile

DOCKER := docker-compose run dbmate
all: build lint test
build:
docker-compose build
lint:
$(DOCKER) golint ./...
$(DOCKER) go vet ./...
$(DOCKER) errcheck ./...
test:
$(DOCKER) go test -p=1 -v ./...