diff --git a/.ci/check.sh b/.ci/check.sh index ce11fc6c8..0620fdfe5 100755 --- a/.ci/check.sh +++ b/.ci/check.sh @@ -38,6 +38,17 @@ if [ "${untagged_todo}" ]; then exit_code=1 fi +echo -e "\n${ANSI_GREEN}Checking for gettext warnings${ANSI_RESET}" +gettext_output=$(make -o po pot 2>&1) +gettext_exit_code=$? +printf '%s\n' "${gettext_output}" +if [ ${gettext_exit_code} -ne 0 ]; then + exit_code=1 +elif grep -q '^xgettext: warning:' <<<"${gettext_output}"; then + echo -e "\n${ANSI_RED}Warning: xgettext reported warnings.${ANSI_RESET}" + exit_code=1 +fi + echo -e "\n${ANSI_GREEN}Luacheck results${ANSI_RESET}" luacheck ${PARALLEL_JOBS:+-j "${PARALLEL_JOBS}"} -q {reader,setupkoenv,datastorage}.lua frontend plugins spec platform/remarkable/qtfb_keep_alive.lua || exit_code=1