mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Instead of running the testsuite twice when coverage is need, only run it once (without filtering out `nocov` tests): with `cluacov` installed, it's only 50% slower than a normal run.
16 lines
411 B
Bash
Executable File
16 lines
411 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"
|
|
|
|
set +e
|
|
|
|
if [ -z "${CIRCLE_PULL_REQUEST}" ] && [ "${CIRCLE_BRANCH}" = 'master' ]; then
|
|
echo -e "\\n${ANSI_GREEN}Uploading coverage."
|
|
cd install/koreader && {
|
|
# see https://github.com/codecov/example-lua
|
|
bash <(curl -s https://codecov.io/bash)
|
|
}
|
|
fi
|