From 37ad7e96060c9fc6c06a47447329b83104932f34 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Thu, 5 Nov 2020 22:25:40 +0300 Subject: fix(CI): fix coverage pipline --- .depend.mk | 4 ++-- Makefile | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.depend.mk b/.depend.mk index 72048aa..adb1158 100644 --- a/.depend.mk +++ b/.depend.mk @@ -1,3 +1,3 @@ core.lua: core.fnl macros/core.fnl macros/fn.fnl -core_test.lua: core_test.fnl macros/core.fnl macros/fn.fnl -macros_test.lua: macros_test.fnl macros/core.fnl macros/fn.fnl +core_test.lua: test/core.fnl macros/core.fnl macros/fn.fnl +test/macros.lua: test/macros.fnl macros/core.fnl macros/fn.fnl diff --git a/Makefile b/Makefile index d8ec9ce..4f6d1c5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ LUA ?= lua -FNLSOURCES = core.fnl core_test.fnl macros_test.fnl +FNLSOURCES = core.fnl test/core.fnl test/macros.fnl LUASOURCES = $(FNLSOURCES:.fnl=.lua) all: $(LUASOURCES) @@ -14,6 +14,7 @@ ${LUASOURCES}: $(FNLSOURCES) clean: rm -f *.lua + rm -f test/*.lua clean-all: clean rm -f luacov* @@ -27,9 +28,15 @@ luacov: | clean-all all luacov-stats luacov luacov-console: | luacov + @mv test/core.lua test/core.lua.tmp + @mv test/macros.lua test/macros.lua.tmp + @mv test/fn.lua test/fn.lua.tmp luacov-console . + @mv test/core.lua.tmp test/core.lua + @mv test/macros.lua.tmp test/macros.lua + @mv test/fn.lua.tmp test/fn.lua -luacov-stats: core_test.lua macros_test.lua +luacov-stats: test/core.lua test/macros.lua test/fn.lua @$(LUA) -lluarocks.loader -lluacov $< help: -- cgit v1.2.3