mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
31 lines
532 B
Makefile
31 lines
532 B
Makefile
SUBDIRS := cmd/api cmd/nginx
|
|
BINPATH := $(abspath ./bin)
|
|
GOLANGCI := $(BINPATH)/golangci-lint
|
|
|
|
.PHONY: push
|
|
push:
|
|
for d in $(SUBDIRS); do $(MAKE) -C $$d push; done
|
|
|
|
$(GOLANGCI):
|
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BINPATH) v1.16.0
|
|
$(GOLANGCI) --version
|
|
|
|
.PHONY: lint
|
|
lint: $(GOLANGCI)
|
|
$(GOLANGCI) run
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test -short ./...
|
|
|
|
.PHONY: up
|
|
up:
|
|
docker-compose pull
|
|
docker-compose up -d
|
|
|
|
.PHONY: static
|
|
static:
|
|
- rm -rf dist/
|
|
npm install
|
|
npm run build
|