This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 216c854  Travis: install the `luacov` when create `deps` folder (#1477)
216c854 is described below

commit 216c854201005a609f02cc41975565ca7bf156fb
Author: YuanSheng Wang <membp...@gmail.com>
AuthorDate: Mon Apr 20 15:05:05 2020 +0800

    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.
---
 .travis/linux_openresty_runner.sh | 2 +-
 .travis/linux_tengine_runner.sh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis/linux_openresty_runner.sh 
b/.travis/linux_openresty_runner.sh
index a30f530..384d10e 100755
--- a/.travis/linux_openresty_runner.sh
+++ b/.travis/linux_openresty_runner.sh
@@ -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
diff --git a/.travis/linux_tengine_runner.sh b/.travis/linux_tengine_runner.sh
index 220493e..45a9ec4 100755
--- a/.travis/linux_tengine_runner.sh
+++ b/.travis/linux_tengine_runner.sh
@@ -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

Reply via email to