mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
21 lines
378 B
Makefile
21 lines
378 B
Makefile
DC := docker-compose
|
|
|
|
all: clean container lint test build
|
|
|
|
clean:
|
|
rm -rf dist
|
|
|
|
container:
|
|
$(DC) build
|
|
|
|
lint:
|
|
$(DC) run dbmate golint
|
|
$(DC) run dbmate go vet
|
|
$(DC) run dbmate errcheck
|
|
|
|
test:
|
|
$(DC) run dbmate go test -v
|
|
|
|
build: clean
|
|
$(DC) run -e GOARCH=386 dbmate go build -o dist/dbmate-linux-i386
|
|
$(DC) run -e GOARCH=amd64 dbmate go build -o dist/dbmate-linux-amd64
|