mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Prevents race conditions when creating/dropping databases. See: http://stackoverflow.com/questions/15721238/go-serial-execution-of-package-tests
14 lines
209 B
Makefile
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 ./...
|