You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by la...@apache.org on 2021/09/26 12:23:49 UTC

[dubbo-go] 01/01: fix: integrate test script

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

laurence pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git

commit 91ebda2e80d403733a7d19cbba6936512b2d3897
Author: LaurenceLiZhixin <38...@qq.com>
AuthorDate: Sun Sep 26 20:23:11 2021 +0800

    fix: integrate test script
---
 integrate_test.sh | 36 ++++++------------------------------
 1 file changed, 6 insertions(+), 30 deletions(-)

diff --git a/integrate_test.sh b/integrate_test.sh
index b12c653..e2684ff 100644
--- a/integrate_test.sh
+++ b/integrate_test.sh
@@ -35,35 +35,11 @@ echo "github pull request repo param -> $1"
 echo "github pull request base branch -> $3"
 echo "github pull request head branch -> ${GITHUB_HEAD_REF}"
 
-samples_testing() {
-    echo "use dubbo-go-samples $3 branch for integration testing"
-    git clone -b master https://github.com/apache/dubbo-go-samples.git samples && cd samples
+echo "use dubbo-go-samples $3 branch for integration testing"
+git clone -b master https://github.com/apache/dubbo-go-samples.git samples && cd samples
 
-    # update dubbo-go to current commit id
-    go mod edit -replace=dubbo.apache.org/dubbo-go/v3=github.com/"$1"/v3@"$2"
+# update dubbo-go to current commit id
+go mod edit -replace=dubbo.apache.org/dubbo-go/v3=github.com/"$1"/v3@"$2"
 
-    # start integrate test
-    ./start_integrate_test.sh
-}
-
-local_testing() {
-    echo "use test/integrate/dubbo for integration testing"
-    # default use zk as registry
-    #start zookeeper registry insecure listen in [:]:2181
-    docker run -d --network host zookeeper
-    echo "zookeeper listen in [:]2181"
-
-    # build go-server image
-    cd ./test/integrate/dubbo/go-server
-    docker build . -t ci-provider --build-arg REPO="$1" --build-arg COMMITID="$2"
-    cd "${ROOT_DIR}"
-    docker run -d --network host ci-provider
-}
-
-# check dubbo-go-samples corresponding branch
-res=$(git ls-remote --heads https://github.com/apache/dubbo-go-samples.git "$3" | wc -l)
-if [ "$res" -eq "1" ]; then
-    samples_testing "$@"
-else
-    local_testing "$@"
-fi
+# start integrate test
+./start_integrate_test.sh