mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
ci/circle: speed up lint phase (#14472)
Honor `PARALLEL_JOBS` so the number of luacheck jobs is capped to 3 (we don't want to end-up using 36 jobs).
This commit is contained in:
@@ -39,6 +39,6 @@ if [ "${untagged_todo}" ]; then
|
||||
fi
|
||||
|
||||
echo -e "\n${ANSI_GREEN}Luacheck results${ANSI_RESET}"
|
||||
luacheck -q {reader,setupkoenv,datastorage}.lua frontend plugins spec || exit_code=1
|
||||
luacheck ${PARALLEL_JOBS:+-j "${PARALLEL_JOBS}"} -q {reader,setupkoenv,datastorage}.lua frontend plugins spec || exit_code=1
|
||||
|
||||
exit ${exit_code}
|
||||
|
||||
@@ -39,7 +39,8 @@ jobs:
|
||||
CLICOLOR_FORCE: "1"
|
||||
EMULATE_READER: "1"
|
||||
KODEBUG: ""
|
||||
MAKEFLAGS: "PARALLEL_JOBS=3 OUTPUT_DIR=build INSTALL_DIR=install"
|
||||
MAKEFLAGS: "OUTPUT_DIR=build INSTALL_DIR=install"
|
||||
PARALLEL_JOBS: "3"
|
||||
steps:
|
||||
# Checkout / fetch. {{{
|
||||
- checkout
|
||||
|
||||
Reference in New Issue
Block a user