@ -6,12 +6,10 @@ source "${CI_DIR}/common.sh"
set +e
set +e
echo " $ CIRCLE_NODE_INDEX"
echo " CIRCLE_NODE_INDEX: ${ CIRCLE_NODE_INDEX} "
if [ ! " $CIRCLE_NODE_INDEX " = 0 ] ; then
if [ ! " $CIRCLE_NODE_INDEX " = 0 ] ; then
echo -e " \\n ${ ANSI_GREEN } Not on first node. Skipping documentation update and coverage. "
echo -e " \\n ${ ANSI_GREEN } Not on first node. Skipping documentation update and coverage. "
elif [ -z " ${ CIRCLE_PULL_REQUEST } " ] && [ " ${ CIRCLE_BRANCH } " = 'master' ] ; then
elif [ -z " ${ CIRCLE_PULL_REQUEST } " ] && [ " ${ CIRCLE_BRANCH } " = 'master' ] ; then
travis_retry luarocks --local install ldoc
echo -e " \\n ${ ANSI_GREEN } Checking out koreader/doc for update. "
echo -e " \\n ${ ANSI_GREEN } Checking out koreader/doc for update. "
git clone git@github.com:koreader/doc.git koreader_doc
git clone git@github.com:koreader/doc.git koreader_doc
@ -34,13 +32,10 @@ elif [ -z "${CIRCLE_PULL_REQUEST}" ] && [ "${CIRCLE_BRANCH}" = 'master' ]; then
echo -e " \\n ${ ANSI_GREEN } Documentation update pushed. "
echo -e " \\n ${ ANSI_GREEN } Documentation update pushed. "
} && popd || exit
} && popd || exit
# rerun make to regenerate /spec dir (was deleted to prevent uploading to cache)
echo -e " \\n ${ ANSI_GREEN } make all "
make all
travis_retry make coverage
travis_retry make coverage
pushd koreader-*/koreader && {
pushd koreader-*/koreader && {
# temporarily use || true so builds won't fail until we figure out the coverage issue
# see https://github.com/codecov/example-lua
luajit " $( which luacov-coveralls) " --verbose || true
bash <( curl -s https://codecov.io/bash)
} && popd || exit
} && popd || exit
else
else
echo -e " \\n ${ ANSI_GREEN } Not on official master branch. Skipping documentation update and coverage. "
echo -e " \\n ${ ANSI_GREEN } Not on official master branch. Skipping documentation update and coverage. "