mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 12:07:35 +08:00
Travis: install the luacov
when create deps
folder (#1477)
fix travis: https://travis-ci.org/github/apache/incubator-apisix/jobs/677082965#L524 Install the luacov when create deps folder. Then we can avoid installing "luacov" after copying "deps" from the "build-cache" folder to the current folder.
This commit is contained in:
parent
7440192f8f
commit
216c854201
@ -26,6 +26,7 @@ create_lua_deps() {
|
||||
echo "Create lua deps cache"
|
||||
|
||||
make deps
|
||||
luarocks install luacov-coveralls --tree=deps --local > build.log 2>&1 || (cat build.log && exit 1)
|
||||
|
||||
sudo rm -rf build-cache/deps
|
||||
sudo cp -r deps build-cache/
|
||||
@ -67,7 +68,6 @@ do_install() {
|
||||
cd ..
|
||||
rm -rf luarocks-2.4.4
|
||||
|
||||
sudo luarocks install luacov-coveralls --tree=deps --local > build.log 2>&1 || (cat build.log && exit 1)
|
||||
sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)
|
||||
|
||||
export GO111MOUDULE=on
|
||||
|
@ -27,6 +27,7 @@ create_lua_deps() {
|
||||
|
||||
rm -rf deps
|
||||
make deps
|
||||
luarocks install luacov-coveralls --tree=deps --local > build.log 2>&1 || (cat build.log && exit 1)
|
||||
|
||||
sudo rm -rf build-cache/deps
|
||||
sudo cp -r deps build-cache/
|
||||
@ -244,7 +245,6 @@ do_install() {
|
||||
fi
|
||||
fi
|
||||
|
||||
luarocks install luacov-coveralls --tree=deps --local > build.log 2>&1 || (cat build.log && exit 1)
|
||||
sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)
|
||||
|
||||
git clone https://github.com/iresty/test-nginx.git test-nginx
|
||||
|
Loading…
Reference in New Issue
Block a user