Factor out ci target into subtargets that can be run independently.
This commit is contained in:
parent
487f4ca6f2
commit
93f6543e42
12
Makefile
12
Makefile
@ -15,8 +15,8 @@ REQUIRE_AS_INCLUDE_SETTINGS=$(shell $(FENNEL) tools/require-flags.fnl)
|
|||||||
|
|
||||||
ROCKSPEC_LATEST_SCM=rockspecs/fennel-ls-scm-$(shell ls rockspecs | grep -Eo 'scm-[0-9]+' | grep -Eo [0-9]+ | sort -n | tail -1).rockspec
|
ROCKSPEC_LATEST_SCM=rockspecs/fennel-ls-scm-$(shell ls rockspecs | grep -Eo 'scm-[0-9]+' | grep -Eo [0-9]+ | sort -n | tail -1).rockspec
|
||||||
|
|
||||||
.PHONY: all clean test repl install docs install-deps ci selflint deps \
|
.PHONY: all clean test repl install docs docs-love2d install-deps ci selflint \
|
||||||
rm-docs rm-deps count
|
deps rm-docs rm-deps count testall check-deps check-luarocks
|
||||||
|
|
||||||
all: $(EXE)
|
all: $(EXE)
|
||||||
|
|
||||||
@ -57,14 +57,14 @@ install: $(EXE)
|
|||||||
test: $(EXE)
|
test: $(EXE)
|
||||||
TESTING=1 $(FENNEL) $(FENNELFLAGS) test/init.fnl
|
TESTING=1 $(FENNEL) $(FENNELFLAGS) test/init.fnl
|
||||||
|
|
||||||
ci:
|
testall:
|
||||||
$(MAKE) test LUA=lua5.1
|
$(MAKE) test LUA=lua5.1
|
||||||
$(MAKE) test LUA=lua5.2
|
$(MAKE) test LUA=lua5.2
|
||||||
$(MAKE) test LUA=lua5.3
|
$(MAKE) test LUA=lua5.3
|
||||||
$(MAKE) test LUA=lua5.4
|
$(MAKE) test LUA=lua5.4
|
||||||
$(MAKE) test LUA=luajit
|
$(MAKE) test LUA=luajit
|
||||||
|
|
||||||
# Make sure the dependency files are correct
|
check-deps:
|
||||||
rm -rf old-deps old-fennel
|
rm -rf old-deps old-fennel
|
||||||
mv deps old-deps
|
mv deps old-deps
|
||||||
mv fennel old-fennel
|
mv fennel old-fennel
|
||||||
@ -73,10 +73,12 @@ ci:
|
|||||||
diff -r fennel old-fennel
|
diff -r fennel old-fennel
|
||||||
rm -rf old-deps old-fennel
|
rm -rf old-deps old-fennel
|
||||||
|
|
||||||
# test that luarocks builds and runs
|
check-luarocks:
|
||||||
luarocks install $(ROCKSPEC_LATEST_SCM) --dev --local
|
luarocks install $(ROCKSPEC_LATEST_SCM) --dev --local
|
||||||
eval "$$(luarocks path)"; \
|
eval "$$(luarocks path)"; \
|
||||||
fennel-ls --lint
|
fennel-ls --lint
|
||||||
|
|
||||||
|
ci: testall check-deps check-luarocks
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr $(EXE) old-deps old-fennel build/
|
rm -fr $(EXE) old-deps old-fennel build/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user