mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
ec280f874f
See <https://github.com/koreader/koreader/pull/8607> for discussion.
26 lines
832 B
Bash
Executable File
26 lines
832 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 "CIRCLE_NODE_INDEX: ${CIRCLE_NODE_INDEX}"
|
|
if [ "${CIRCLE_NODE_INDEX}" = 1 ]; then
|
|
echo -e "\\n${ANSI_GREEN}Running make testfront for timings."
|
|
make testfront BUSTED_OVERRIDES="--output=junit -Xoutput junit-test-results.xml"
|
|
fi
|
|
|
|
if [ "${CIRCLE_NODE_INDEX}" = 0 ]; then
|
|
travis_retry make coverage
|
|
pushd koreader-*/koreader && {
|
|
# see https://github.com/codecov/example-lua
|
|
bash <(curl -s https://codecov.io/bash)
|
|
} && popd || exit
|
|
fi
|
|
else
|
|
echo -e "\\n${ANSI_GREEN}Not on official master branch. Skipping coverage."
|
|
fi
|