Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyx committed Jan 23, 2021
1 parent f354f90 commit fec0532
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions integrate_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ ROOT_DIR=$(pwd)
echo "integrate-test root work-space -> ${ROOT_DIR}"

# show all travis-env
echo "travis current commit id -> ${TRAVIS_COMMIT}"
echo "travis pull request -> ${TRAVIS_PULL_REQUEST}"
echo "travis pull request branch -> ${TRAVIS_PULL_REQUEST_BRANCH}"
echo "travis pull request slug -> ${TRAVIS_PULL_REQUEST_SLUG}"
echo "travis pull request sha -> ${TRAVIS_PULL_REQUEST_SHA}"
echo "travis pull request repo slug -> ${TRAVIS_REPO_SLUG}"
echo "travis current commit id -> ${GITHUB_SHA}"
echo "travis pull request branch -> ${GITHUB_REF}"
echo "travis pull request slug -> ${GITHUB_REPOSITORY}"
echo "travis pull request repo slug -> ${GITHUB_REPOSITORY}"


# #start etcd registry insecure listen in [:]:2379
Expand All @@ -53,13 +51,13 @@ echo "zookeeper listen in [:]2181"

# build go-server image
cd ./test/integrate/dubbo/go-server
docker build . -t ci-provider --build-arg PR_ORIGIN_REPO=${TRAVIS_PULL_REQUEST_SLUG} --build-arg PR_ORIGIN_COMMITID=${TRAVIS_PULL_REQUEST_SHA}
docker build . -t ci-provider --build-arg PR_ORIGIN_REPO=${GITHUB_REPOSITORY} --build-arg PR_ORIGIN_COMMITID=${GITHUB_SHA}
cd ${ROOT_DIR}
docker run -d --network host ci-provider

# build go-client image
cd ./test/integrate/dubbo/go-client
docker build . -t ci-consumer --build-arg PR_ORIGIN_REPO=${TRAVIS_PULL_REQUEST_SLUG} --build-arg PR_ORIGIN_COMMITID=${TRAVIS_PULL_REQUEST_SHA}
docker build . -t ci-consumer --build-arg PR_ORIGIN_REPO=${GITHUB_REPOSITORY} --build-arg PR_ORIGIN_COMMITID=${GITHUB_SHA}
cd ${ROOT_DIR}
# run provider
# check consumer status
Expand Down

0 comments on commit fec0532

Please sign in to comment.