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"
|
|
|
|
cp "${TRAVIS_BUILD_DIR}/install/etc/luarocks/config.lua" "${HOME}/.luarocks/config.lua"
|
2017-04-11 09:28:01 +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
|
|
|
|
travis_retry luarocks --local install busted 2.0.rc12-1
|
|
|
|
#- mv -f $HOME/.luarocks/bin/busted_bootstrap $HOME/.luarocks/bin/busted
|
|
|
|
travis_retry luarocks --local install luacov
|
|
|
|
# luasec doesn't automatically detect 64-bit libs
|
|
|
|
travis_retry luarocks --local install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
|
|
|
|
travis_retry luarocks --local install luacov-coveralls --server=http://rocks.moonscript.org/dev
|
|
|
|
travis_retry luarocks --local install luacheck
|
2017-04-11 09:28:01 +00:00
|
|
|
travis_retry luarocks --local install lanes # for parallel luacheck
|