diff --git a/deps.sh b/deps.sh index abff8f4b..57c219de 100755 --- a/deps.sh +++ b/deps.sh @@ -13,7 +13,18 @@ tarantoolctl rocks install https://raw.githubusercontent.com/mpeterv/cluacov/mas tarantoolctl rocks install https://raw.githubusercontent.com/LuaDist/dkjson/master/dkjson-2.5-2.rockspec tarantoolctl rocks install https://raw.githubusercontent.com/keplerproject/luafilesystem/master/luafilesystem-scm-1.rockspec tarantoolctl rocks install https://raw.githubusercontent.com/moteus/lua-path/master/rockspecs/lua-path-scm-0.rockspec -tarantoolctl rocks install https://raw.githubusercontent.com/moteus/luacov-coveralls/master/rockspecs/luacov-coveralls-scm-0.rockspec + +# Most of this code is the workaround for +# https://github.com/moteus/luacov-coveralls/pull/30 +# Remove it, when the pull request will be merged. +TMPDIR="$(mktemp -d)" +LUACOV_COVERALLS_ROCKSPEC_URL="https://raw.githubusercontent.com/moteus/luacov-coveralls/master/rockspecs/luacov-coveralls-scm-0.rockspec" +LUACOV_COVERALLS_ROCKSPEC_FILE="${TMPDIR}/luacov-coveralls-scm-0.rockspec" +curl -fsSL "${LUACOV_COVERALLS_ROCKSPEC_URL}" > "${LUACOV_COVERALLS_ROCKSPEC_FILE}" +sed -i -e 's@git://@git+https://@' "${LUACOV_COVERALLS_ROCKSPEC_FILE}" +tarantoolctl rocks install "${LUACOV_COVERALLS_ROCKSPEC_FILE}" +rm "${LUACOV_COVERALLS_ROCKSPEC_FILE}" +rmdir "${TMPDIR}" tarantoolctl rocks install cartridge 2.7.3 tarantoolctl rocks install ddl 1.6.0