Skip to content

Commit

Permalink
Merge pull request #17 from hellobike/feature/gomodule
Browse files Browse the repository at this point in the history
使用gomod
支持kafka 2.3.0
  • Loading branch information
philchia committed Sep 10, 2019
2 parents 1ca9ca8 + 6d10b49 commit 913d132
Show file tree
Hide file tree
Showing 11 changed files with 229 additions and 168 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.9
- image: circleci/golang:1.13

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand All @@ -17,13 +17,13 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/hellobike/amazonriver
working_directory: /go/proj/github.com/hellobike/amazonriver
steps:
- checkout

# specify any bash command here prefixed with `run: `
- run: go get -u -v -t github.com/Masterminds/glide
- run: glide install
- run: go test -v -cover ./...
- run: go get -u github.com/mattn/goveralls
- run: goveralls -service=circleci -repotoken $COVERALLS_TOKEN
- run: go get -u golang.org/x/tools/cmd/cover
- run: GO111MODULE=on go mod vendor
- run: go test -v -covermode=count -coverprofile=coverage.out ./...
- run: goveralls -coverprofile=coverage.out -service=circleci -repotoken $COVERALLS_TOKEN
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,7 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/go,osx,linux,windows,sublimetext,visualstudiocode
# End of https://www.gitignore.io/api/go,osx,linux,windows,sublimetext,visualstudiocode
.idea/inspectionProfiles/
.idea/workspace.xml
amazonriver
8 changes: 8 additions & 0 deletions .idea/amazonriver.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 0 additions & 113 deletions glide.lock

This file was deleted.

27 changes: 0 additions & 27 deletions glide.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module github.com/hellobike/amazonriver

go 1.13

require (
github.com/Shopify/sarama v1.23.1
github.com/cockroachdb/apd v1.1.0 // indirect
github.com/fortytw2/leaktest v1.3.0 // indirect
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect
github.com/jackc/pgx v3.5.0+incompatible
github.com/json-iterator/go v1.1.7
github.com/lib/pq v1.2.0 // indirect
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect
github.com/nickelser/parselogical v0.0.0-20171014195826-b07373e53c91
github.com/olivere/elastic v6.2.23+incompatible
github.com/prometheus/client_golang v1.1.0
github.com/satori/go.uuid v1.2.0 // indirect
github.com/shopspring/decimal v0.0.0-20190905144223-a36b5d85f337 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
gopkg.in/jcmturner/goidentity.v3 v3.0.0 // indirect
)

0 comments on commit 913d132

Please sign in to comment.