Skip to content

Commit

Permalink
*: fix ci bandwitdh limit
Browse files Browse the repository at this point in the history
travis CI occasionally returns daily bandwidth exceeded error.
This fix follows golang/go#12933
  • Loading branch information
coocood committed Mar 21, 2016
1 parent 3dbaeb4 commit 0573c47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ parser:
@awk 'BEGIN{print "// Code generated by goyacc"} {print $0}' parser/scanner.go > tmp_scanner.go && mv tmp_scanner.go parser/scanner.go;

check:
bash gitcookie.sh
go get github.com/golang/lint/golint

@echo "vet"
Expand Down
9 changes: 9 additions & 0 deletions gitcookie.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
touch ~/.gitcookies
chmod 0600 ~/.gitcookies

git config --global http.cookiefile ~/.gitcookies

tr , \\t <<\__END__ >>~/.gitcookies
go.googlesource.com,FALSE,/,TRUE,2147483647,o,git-z.pingcap.com=1/Xv6CBlnVpdrhYBXT5i_VexGocQcbgkKsrW938zgjqx0
go-review.googlesource.com,FALSE,/,TRUE,2147483647,o,git-z.pingcap.com=1/Xv6CBlnVpdrhYBXT5i_VexGocQcbgkKsrW938zgjqx0
__END__

0 comments on commit 0573c47

Please sign in to comment.