-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (43 loc) · 1.15 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
TESTING_CONF = kong_TEST.yml
DEVELOPMENT_CONF = kong_DEVELOPMENT.yml
.PHONY: install dev clean seed drop test coverage test-api test-proxy test-server test-all
install:
@if [ `uname` == "Darwin" ]; then \
luarocks make kong-*.rockspec; \
else \
luarocks make kong-*.rockspec \
PCRE_LIBDIR=`find / -type f -name "libpcre.so*" -print -quit | xargs dirname` \
OPENSSL_LIBDIR=`find / -type f -name "libssl.so*" -print -quit | xargs dirname`; \
fi
dev:
@scripts/dev_rocks.sh
@bin/kong config -e TEST
@bin/kong config -e DEVELOPMENT
@bin/kong db -c $(DEVELOPMENT_CONF) migrate:up
clean:
@rm -f luacov.*
@rm -f $(DEVELOPMENT_CONF) $(TESTING_CONF)
@rm -rf nginx_tmp
@bin/kong db -c $(DEVELOPMENT_CONF) migrate:reset
run:
@bin/kong start -c $(DEVELOPMENT_CONF)
seed:
@bin/kong db -c $(DEVELOPMENT_CONF) seed
drop:
@bin/kong db -c $(DEVELOPMENT_CONF) drop
lint:
@luacheck kong*.rockspec
test:
@busted spec/unit
coverage:
@rm -f luacov.*
@busted --coverage spec/unit
@luacov -c spec/.luacov
test-api:
@busted spec/integration/api
test-proxy:
@busted spec/integration/proxy
test-server:
@busted spec/integration/server
test-all:
@busted spec/