From f294090130b1e571660becccbf07a8d10fac5517 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 15 Aug 2020 15:11:55 +0800 Subject: [PATCH] update codecov settings --- .codecov.yml | 3 +++ .github/workflows/go.yml | 5 +++++ .gitlab-ci.yml | 18 ------------------ .travis.yml | 13 ------------- 4 files changed, 8 insertions(+), 31 deletions(-) create mode 100644 .codecov.yml delete mode 100644 .gitlab-ci.yml delete mode 100644 .travis.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000000..d7cf44debd97 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,3 @@ +ignore: + - "example/*" + - "tools/*" \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3a2d40ca9f9f..bab9ec7cd542 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -28,3 +28,8 @@ jobs: - name: Test run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... + + - name: Codecov + uses: codecov/codecov-action@v1.0.6 + with: + token: ${{secrets.CODECOV_TOKEN}} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index ae16716aba4b..000000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,18 +0,0 @@ -stages: -- analysis - -variables: - GOPATH: '/runner-cache/zero' - GOCACHE: '/runner-cache/zero' - GOPROXY: 'https://goproxy.cn,direct' - -analysis: - stage: analysis - image: golang - script: - - go version && go env - - go test -short $(go list ./...) | grep -v "no test" - only: - - merge_requests - tags: - - common diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b9f4d6089288..000000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go - -go: - - 1.14.x - -before_install: - - go get -t -v ./... - -script: - - go test -race -coverprofile=coverage.txt -covermode=atomic - -after_success: - - bash <(curl -s https://codecov.io/bash)