mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
ci: fix coverage report
This commit is contained in:
@@ -5,7 +5,7 @@ source "${CI_DIR}/common.sh"
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
make coverage
|
travis_retry make coverage
|
||||||
pushd koreader-*/koreader
|
pushd koreader-*/koreader
|
||||||
luajit $(which luacov-coveralls) -v
|
luajit $(which luacov-coveralls) -v
|
||||||
popd
|
popd
|
||||||
|
|||||||
5
Makefile
5
Makefile
@@ -107,7 +107,10 @@ test:
|
|||||||
$(MAKE) testfront
|
$(MAKE) testfront
|
||||||
|
|
||||||
coverage: $(INSTALL_DIR)/koreader/.luacov
|
coverage: $(INSTALL_DIR)/koreader/.luacov
|
||||||
cd $(INSTALL_DIR)/koreader && ./luajit $(shell which busted) -o verbose_print --coverage --exclude-tags=nocov
|
cd $(INSTALL_DIR)/koreader && \
|
||||||
|
./luajit $(shell which busted) -o verbose_print \
|
||||||
|
--no-auto-insulate \
|
||||||
|
--coverage --exclude-tags=nocov
|
||||||
# coverage report summary
|
# coverage report summary
|
||||||
cd $(INSTALL_DIR)/koreader && tail -n \
|
cd $(INSTALL_DIR)/koreader && tail -n \
|
||||||
+$$(($$(grep -nm1 Summary luacov.report.out|cut -d: -f1)-1)) \
|
+$$(($$(grep -nm1 Summary luacov.report.out|cut -d: -f1)-1)) \
|
||||||
|
|||||||
Reference in New Issue
Block a user