This is an automated email from the ASF dual-hosted git repository.
tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-kie.git
The following commit(s) were added to refs/heads/master by this push:
new 4c6e02e wrong path (#147)
4c6e02e is described below
commit 4c6e02e6d72b9391f11b7c4b4f5c11198b42e9b7
Author: Shawn <[email protected]>
AuthorDate: Mon Jun 29 20:15:19 2020 +0800
wrong path (#147)
---
.github/workflows/static_check.yml | 52 +++++++++++++++++++++++---------------
build/build_binary.sh | 4 ---
scripts/travis/start_deps.sh | 4 +--
3 files changed, 33 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/static_check.yml
b/.github/workflows/static_check.yml
index a12019a..f7ae0bf 100644
--- a/.github/workflows/static_check.yml
+++ b/.github/workflows/static_check.yml
@@ -2,10 +2,8 @@ name: Merge check
on: [push, pull_request]
jobs:
build:
- name: Merge check
runs-on: ubuntu-latest
steps:
-
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
@@ -18,25 +16,37 @@ jobs:
- name: Build
run: go build -v github.com/apache/servicecomb-kie/cmd/kieserver
- - name: Fmt
- run: |
- bash scripts/ci/formatChecker.sh
- - name: Misspell
- run: |
- go get -u github.com/client9/misspell/cmd/misspell
- bash scripts/ci/formatChecker.sh
- - name: Lint
- run: |
- go get -u golang.org/x/lint/golint
- bash scripts/ci/goLintChecker.sh
- - name: Cyclo
- run: |
- go get github.com/fzipp/gocyclo
- bash scripts/ci/goCycloChecker.sh
- - name: secure
- run: |
- go get github.com/securego/gosec/cmd/gosec
- bash -x scripts/travis/goSecureChecker.sh
- name: UT
run: |
+ cd build
+ bash build_docker.sh
+ cd ../
+ sudo docker-compose -f ./deployments/docker/docker-compose.yaml up -d
+ sleep 30
go test $(go list ./... | grep -v third_party | grep -v examples)
-cover -covermode atomic -coverprofile coverage.out
+ tests:
+ runs-on: ubuntu-latest
+ env:
+ GO111MODULE: on
+ steps:
+ - name: Checkout Source
+ uses: actions/checkout@v2
+ - name: Run Gosec Security Scanner
+ uses: securego/gosec@master
+ with:
+ args: ./...
+ - name: Fmt
+ run: |
+ bash scripts/ci/formatChecker.sh
+ - name: Misspell
+ run: |
+ go get -u github.com/client9/misspell/cmd/misspell
+ bash scripts/ci/formatChecker.sh
+ - name: Lint
+ run: |
+ go get -u golang.org/x/lint/golint
+ bash scripts/ci/goLintChecker.sh
+ - name: Cyclo
+ run: |
+ go get github.com/fzipp/gocyclo
+ bash scripts/ci/goCycloChecker.sh
\ No newline at end of file
diff --git a/build/build_binary.sh b/build/build_binary.sh
index eadea5e..1474db1 100755
--- a/build/build_binary.sh
+++ b/build/build_binary.sh
@@ -13,10 +13,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-if [ -z "${GOPATH}" ]; then
- echo "missing GOPATH env, can not build"
- exit 1
-fi
echo "GOPATH is "${GOPATH}
export BUILD_DIR=$(cd "$(dirname "$0")"; pwd)
export PROJECT_DIR=$(dirname ${BUILD_DIR})
diff --git a/scripts/travis/start_deps.sh b/scripts/travis/start_deps.sh
index 2d6b251..85b4b94 100755
--- a/scripts/travis/start_deps.sh
+++ b/scripts/travis/start_deps.sh
@@ -17,5 +17,5 @@
cd build
bash build_docker.sh
-sudo docker-compose -f
$GOPATH/src/github.com/apache/servicecomb-kie/deployments/docker/docker-compose.yaml
down
-sudo docker-compose -f
$GOPATH/src/github.com/apache/servicecomb-kie/deployments/docker/docker-compose.yaml
up -d
+sudo docker-compose -f ../../deployments/docker/docker-compose.yaml down
+sudo docker-compose -f ../../deployments/docker/docker-compose.yaml up -d