2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/.ci/test.sh
Benoit Pierre 47a2d3900f make: fix testfront rule
Same behavior as for base: build and install test data before running.
2024-07-31 08:45:48 +02:00

15 lines
492 B
Bash
Executable File

#!/usr/bin/env bash
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=/dev/null
source "${CI_DIR}/common.sh"
pushd install/koreader && {
# the circleci command spits out newlines; we want spaces instead
BUSTED_SPEC_FILE="$(circleci tests glob "spec/front/unit/*_spec.lua" | circleci tests split --split-by=timings --timings-type=filename | tr '\n' ' ')"
} && popd || exit
make testfront --assume-old=all BUSTED_SPEC_FILE="${BUSTED_SPEC_FILE}"
# vim: sw=4