1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/Makefile

31 lines
532 B
Makefile
Raw Normal View History

2019-03-24 16:58:45 -07:00
SUBDIRS := cmd/api cmd/nginx
2019-05-09 10:36:35 -07:00
BINPATH := $(abspath ./bin)
GOLANGCI := $(BINPATH)/golangci-lint
2019-02-24 14:19:55 -08:00
.PHONY: push
push:
for d in $(SUBDIRS); do $(MAKE) -C $$d push; done
$(GOLANGCI):
2019-05-09 10:36:35 -07:00
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BINPATH) v1.16.0
$(GOLANGCI) --version
2019-02-24 14:19:55 -08:00
.PHONY: lint
lint: $(GOLANGCI)
2019-05-09 10:36:35 -07:00
$(GOLANGCI) run
2019-02-24 14:19:55 -08:00
.PHONY: test
test:
go test -short ./...
.PHONY: up
up:
docker-compose pull
docker-compose up -d
2019-05-11 11:56:15 -07:00
.PHONY: static
static:
- rm -rf dist/
npm install
npm run build