-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
49 lines (37 loc) · 800 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
44
45
46
47
48
49
.SILENT:
START_APP=spec/start_app.lua
.PHONY: run_example
run_example:
lua example/app.lua
.PHONY: test
test: unit_test integration_test
.PHONY: unit_test
unit_test:
busted spec/unit/
.PHONY: check
check:
luacheck .
.PHONY: start_app
start_app:
lua $(START_APP) &
.PHONY: _integration_test
_integration_test:
busted spec/integration/
.PHONY: kill_server
kill_server:
pkill -f $(START_APP)
.PHONY: integration_test
integration_test: start_app _integration_test kill_server
.PHONY: _load_test
_load_test:
wrk http://127.0.0.1:7070/
.PHONY: load_test
load_test: start_app _load_test kill_server
.PHONY: install
install:
luarocks install luacheck
luarocks install mimetypes
luarocks install luasocket
luarocks install busted
luarocks install luafilesystem
luarocks install lzlib