Skip to content

Commit

Permalink
*: generate the error metafile (#3046)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx authored Oct 21, 2020
1 parent 47e83f7 commit dcc1b82
Show file tree
Hide file tree
Showing 7 changed files with 1,357 additions and 136 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ cache:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
- $GOPATH/src/github.com/tikv/pd/.tools
# Cache for old branches
- $GOPATH/src/github.com/tikv/pd/.retools

go:
- 1.13
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ default: build

all: dev

dev: build tools check test
dev: build check tools test

ci: build check basic-test

Expand Down Expand Up @@ -119,6 +119,7 @@ swagger-spec: install-go-tools
go mod vendor
swag init --parseVendor -generalInfo server/api/router.go --exclude vendor/github.com/pingcap-incubator/tidb-dashboard --output docs/swagger
go mod tidy
rm -rf vendor

dashboard-ui: export GO111MODULE=on
dashboard-ui:
Expand Down Expand Up @@ -154,7 +155,7 @@ basic-test:
GO111MODULE=on go test $(BASIC_TEST_PKGS) || { $(FAILPOINT_DISABLE); exit 1; }
@$(FAILPOINT_DISABLE)

check: install-go-tools check-all check-plugin
check: install-go-tools check-all check-plugin errdoc

check-all: static lint tidy
@echo "checking"
Expand All @@ -178,6 +179,10 @@ tidy:
GO111MODULE=on go mod tidy
git diff --quiet go.mod go.sum

errdoc: install-go-tools
@echo "generator errors.toml"
./scripts/check-errdoc.sh

travis_coverage: export GO111MODULE=on
travis_coverage:
ifeq ("$(TRAVIS_COVERAGE)", "1")
Expand Down
Loading

0 comments on commit dcc1b82

Please sign in to comment.