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:
Frans de Jonge
2017-04-11 11:23:42 +02:00
committed by GitHub
parent 5bc19fa084
commit 9d39f11f59
9 changed files with 117 additions and 43 deletions

View File

@@ -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