File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2222 hooks :
2323 - id : clang-formater
2424- repo : https://github.com/PaddlePaddle/pre-commit-golang
25- sha : 6bce8cc8a6ce601bcf6feccf6bfbd43fe04ccbeb
25+ sha : fb3ba0e9e38a516543925e96cef76740b61321ab
2626 hooks :
2727 - id : go-fmt
2828 types : [go]
29- - id : go-lint
30- types : [go]
3129 - id : gometalinter
3230 types : [go]
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ export PATH=/usr/bin:$PATH
1313pre-commit install
1414clang-format --version
1515
16+ # set up go environment for running gometalinter
17+ mkdir -p $GOPATH /src/github.com/PaddlePaddle/
18+ ln -sf $TRAVIS_BUILD_DIR $GOPATH /src/github.com/PaddlePaddle/Paddle
19+ cd $GOPATH /src/github.com/PaddlePaddle/Paddle/go; glide install; cd -
20+
1621if ! pre-commit run -a ; then
1722 git diff --exit-code
1823fi
You can’t perform that action at this time.
0 commit comments