mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Go v1.11 (#60)
* Go v1.11 * [Go Modules](https://github.com/golang/go/wiki/Modules) * [GolangCI-Lint](https://github.com/golangci/golangci-lint) * [Distroless](https://github.com/GoogleContainerTools/distroless) docker image
This commit is contained in:
parent
abc544b368
commit
da3d9525cf
8 changed files with 47 additions and 117 deletions
19
Makefile
19
Makefile
|
|
@ -1,30 +1,21 @@
|
|||
DC := docker-compose
|
||||
BUILD_FLAGS := -ldflags '-s'
|
||||
PACKAGES := . ./pkg/...
|
||||
|
||||
.PHONY: all
|
||||
all: dep install test lint build
|
||||
|
||||
.PHONY: dep
|
||||
dep:
|
||||
dep ensure -vendor-only
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
go install -v $(PACKAGES)
|
||||
all: test lint build
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v $(PACKAGES)
|
||||
go test -v ./...
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
gometalinter.v2 $(PACKAGES)
|
||||
golangci-lint run
|
||||
|
||||
.PHONY: wait
|
||||
wait:
|
||||
dbmate -e MYSQL_URL wait
|
||||
dbmate -e POSTGRESQL_URL wait
|
||||
dist/dbmate-linux-amd64 -e MYSQL_URL wait
|
||||
dist/dbmate-linux-amd64 -e POSTGRESQL_URL wait
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue