mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Travis: speed up by caching base and running luacheck earlier (#2741)
* Travis: speed up by caching base and running luacheck earlier * ignore bin and install for git status change detection * skip coverage except on official master branch. It adds 3 whole minutes and does nothing to prevent regressions * also cache ~/.luarocks. It evens out but would generally prevent remote timeout shenenigans * remove base cache dir before caching with verbose remove to see what's going on * more inclusive shell code quality analysis * fixed more shellcheck issues * better shellcheck/shfmt debugging info
This commit is contained in:
@@ -33,11 +33,12 @@ if [ "${TRAVIS_PULL_REQUEST}" = false ] && [ "${TRAVIS_BRANCH}" = 'master' ]; th
|
||||
commit -a --amend -m 'Automated documentation build from travis-ci.'
|
||||
git push -f --quiet origin gh-pages > /dev/null
|
||||
echo -e "\n${ANSI_GREEN}Documentation update pushed."
|
||||
else
|
||||
echo -e "\n${ANSI_GREEN}Not on official master branch, skip documentation update."
|
||||
fi
|
||||
popd
|
||||
|
||||
travis_retry make coverage
|
||||
pushd koreader-*/koreader
|
||||
luajit "$(which luacov-coveralls)"
|
||||
popd
|
||||
travis_retry make coverage
|
||||
pushd koreader-*/koreader
|
||||
luajit "$(which luacov-coveralls)"
|
||||
popd
|
||||
else
|
||||
echo -e "\n${ANSI_GREEN}Not on official master branch, skip documentation update and coverage."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user