forked from redhoyasa/kong-plugin-route-by-cookie
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (35 loc) · 744 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
TMPDIR ?= ../
PONGO_CMD ?= $(TMPDIR)/.kong-pongo/pongo.sh
all: lint test build
.PHONY: lint
lint:
@echo ">> linting Project"
@$(PONGO_CMD) lint
.PHONY: build
build:
@echo ">> building plugin"
@$(PONGO_CMD) pack
.PHONY: test
test:
@echo ">> testing plugin"
@$(PONGO_CMD) run ./spec/
.PHONY: rebuild
rebuild:
@echo ">> rebuilding pongo"
@$(PONGO_CMD) build
.PHONY: start
start:
@echo ">> starting pongo"
@$(PONGO_CMD) up
.PHONY: stop
stop:
@echo ">> stopping pongo"
@$(PONGO_CMD) down
.PHONY: install
install:
ifneq ($(wildcard $(TMPDIR)/.kong-pongo),)
@echo ">> local tooling already installed"
else
@echo ">> install local tooling"
@git clone --single-branch https://github.com/Kong/kong-pongo $(TMPDIR)/.kong-pong
endif