diff --git a/.ci/test.sh b/.ci/test.sh index 66202f500..eda41a929 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -4,4 +4,7 @@ CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=/dev/null source "${CI_DIR}/common.sh" -make testfront +pushd koreader-emulator-x86_64-linux-gnu/koreader && { + circleci tests glob "spec/front/unit/*_spec.lua" | circleci tests split --split-by=timings --timings-type=filename | xargs -I{} sh -c 'make -C ../.. testfront BUSTED_SPEC_FILE="{}" || exit 255' +} && popd +#make testfront diff --git a/.circleci/config.yml b/.circleci/config.yml index e81ff338f..fd11f8c9f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,6 +7,7 @@ jobs: EMULATE_READER: 1 # this is for shellcheck 0.4.5 and lower; can be removed for 0.4.6 LC_ALL: en_US.UTF8 + parallelism: 4 steps: - checkout - restore_cache: diff --git a/Makefile b/Makefile index 75064202d..eefda6931 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ testfront: $(INSTALL_DIR)/koreader/.busted cd $(INSTALL_DIR)/koreader && ./luajit $(shell which busted) \ --sort-files \ --no-auto-insulate \ - -o verbose_print --exclude-tags=notest + -o verbose_print --exclude-tags=notest $(BUSTED_SPEC_FILE) test: $(INSTALL_DIR)/koreader/.busted $(MAKE) -C $(KOR_BASE) test