-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (38 loc) · 1.31 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
ROCKSPEC=rockspecs/lester-0.*.rockspec
LUA=lua
LUACOV=luacov
LUALCOV=$(LUA) -lluacov
test:
LESTER_TEST_SKIP_FAIL=true $(LUA) tests.lua
coverage:
rm -f luacov.stats.out
$(LUA) -lluacov tests.lua
LESTER_QUIET=true $(LUALCOV) tests.lua
LESTER_COLOR=false $(LUALCOV) tests.lua
LESTER_SHOW_TRACEBACK=false $(LUALCOV) tests.lua
LESTER_SHOW_ERROR=false $(LUALCOV) tests.lua
LESTER_STOP_ON_FAIL=true $(LUALCOV) tests.lua || true
LESTER_QUIET=true LESTER_STOP_ON_FAIL=true $(LUALCOV) tests.lua || true
LESTER_FILTER="nested" LESTER_TEST_SKIP_FAIL=true $(LUALCOV) tests.lua
LESTER_TEST_SKIP_FAIL=true $(LUALCOV) tests.lua
LESTER_TEST_SKIP_FAIL=true LESTER_QUIET=true $(LUALCOV) tests.lua
$(LUALCOV) tests.lua --quiet
$(LUALCOV) tests.lua --no-color
$(LUALCOV) tests.lua --no-show-traceback
$(LUALCOV) tests.lua --no-show-error
$(LUALCOV) tests.lua --stop-on-fail|| true
$(LUALCOV) tests.lua --quiet --stop-on-fail || true
$(LUALCOV) tests.lua --filter="nested" --test-skip-fail
LESTER_TEST_SKIP_FAIL=true $(LUALCOV) tests.lua
LESTER_TEST_SKIP_FAIL=true $(LUALCOV) tests.lua --quiet
$(LUACOV)
tail -n 6 luacov.report.out
docs:
ldoc -d docs -f markdown -t "Lester Reference" lester.lua
install:
luarocks make --local
upload:
luarocks upload --api-key=$(LUAROCKS_APIKEY) $(ROCKSPEC)
clean:
rm -f *.out
.PHONY: docs