-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (28 loc) · 794 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
HELPER_SCRIPT=spec/fixtures/helper.lua
BUSTED_FLAGS= \
--coverage --verbose \
--shuffle-files --shuffle-tests \
--helper=$(HELPER_SCRIPT)
EXAMPLE_SCRIPTS=spec/fixtures/script.lua \
spec/fixtures/examples/example.lua \
spec/fixtures/examples/example.moon
ifeq ("$(shell echo $(LUA) | grep -o "jit")", "")
BUSTED_FLAGS += --exclude-tags=jit_only
endif
install:
luarocks make rockspecs/lua-quickcheck-0.2-4.rockspec
fixtures:
$(MAKE) -C spec/fixtures build
tests: fixtures
luacheck --std=max+busted lqc spec \
--exclude-files=$(HELPER_SCRIPT) $(EXAMPLE_SCRIPTS) \
--globals ffi \
--ignore 611
LD_LIBRARY_PATH=spec/fixtures/ busted $(BUSTED_FLAGS)
coverage:
luacov-coveralls --dryrun
clean:
$(MAKE) -C spec/fixtures clean
docs:
ldoc lqc \$$* --all
.PHONY: clean