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
|
||||
|
||||
make coverage
|
||||
travis_retry make coverage
|
||||
pushd koreader-*/koreader
|
||||
luajit $(which luacov-coveralls) -v
|
||||
popd
|
||||
|
||||
5
Makefile
5
Makefile
@@ -107,7 +107,10 @@ test:
|
||||
$(MAKE) testfront
|
||||
|
||||
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
|
||||
cd $(INSTALL_DIR)/koreader && tail -n \
|
||||
+$$(($$(grep -nm1 Summary luacov.report.out|cut -d: -f1)-1)) \
|
||||
|
||||
Reference in New Issue
Block a user