-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 836 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 836 Bytes
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
DEV_ROCKS = "lua-cjson 2.1.0" "kong 1.0.3" "luacov 0.12.0" "busted 2.0.rc12" "luacov-cobertura 0.2-1" "luacheck 0.20.0" "--server=http://luarocks.org/dev luaffi scm-1"
LUA_PROJECT = kong-plugin-api-transformer
setup:
@for rock in $(DEV_ROCKS) ; do \
if luarocks list --porcelain $$rock | grep -q "installed" ; then \
echo $$rock already installed, skipping ; \
else \
echo $$rock not found, installing via luarocks... ; \
luarocks install $$rock; \
fi \
done;
check:
@for rock in $(DEV_ROCKS) ; do \
if luarocks list --porcelain $$rock | grep -q "installed" ; then \
echo $$rock is installed ; \
else \
echo $$rock is not installed ; \
fi \
done;
install:
-@luarocks remove $(LUA_PROJECT)
luarocks make
test:
busted --lazy ./spec/fscgi_handler_spec.lua
package:
luarocks make --pack-binary-rock