2017-04-11 09:23:42 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# shellcheck source=/dev/null
|
|
|
|
source "${CI_DIR}/common.sh"
|
|
|
|
|
|
|
|
rm -rf "${HOME}/.luarocks"
|
|
|
|
mkdir "${HOME}/.luarocks"
|
2017-09-07 04:26:20 +00:00
|
|
|
cp "${CI_BUILD_DIR}/install/etc/luarocks/config.lua" "${HOME}/.luarocks/config.lua"
|
2020-02-02 19:35:21 +00:00
|
|
|
echo "wrap_bin_scripts = false" >>"${HOME}/.luarocks/config.lua"
|
2017-04-11 09:23:42 +00:00
|
|
|
travis_retry luarocks --local install luafilesystem
|
|
|
|
# for verbose_print module
|
|
|
|
travis_retry luarocks --local install ansicolors
|
2020-12-15 18:13:55 +00:00
|
|
|
travis_retry luarocks --local install busted 2.0.0-1
|
2017-04-11 09:23:42 +00:00
|
|
|
#- mv -f $HOME/.luarocks/bin/busted_bootstrap $HOME/.luarocks/bin/busted
|
2017-10-30 14:28:54 +00:00
|
|
|
|
2017-04-11 09:23:42 +00:00
|
|
|
travis_retry luarocks --local install luacheck
|
2017-04-11 09:28:01 +00:00
|
|
|
travis_retry luarocks --local install lanes # for parallel luacheck
|
2017-10-10 15:57:50 +00:00
|
|
|
|
|
|
|
# used only on master branch but added to cache for better speed
|
|
|
|
travis_retry luarocks --local install ldoc
|
|
|
|
travis_retry luarocks --local install luacov
|