Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: install go module first before run go test #181

Merged
merged 5 commits into from
Oct 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@ workspace:
path: github.com/appleboy/gin-jwt

pipeline:
vendor:
vendor-install:
image: golang:1.11
pull: true
group: install
commands:
- make install

module-install:
image: golang:1.11
pull: true
group: install
environment:
- GO111MODULE=on
commands:
- make install-module

build:
image: golang:1.11
pull: true
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ install:
fi
govendor sync

install-module:
go mod download

embedmd-check:
@hash embedmd > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u github.com/campoy/embedmd; \
Expand Down Expand Up @@ -73,5 +76,6 @@ coverage:
gocovmerge $(shell find . -type f -name "coverage.out") > coverage.all;\

clean:
go clean -modcache
rm -rf .cover
find . -name "coverage.txt"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require (
github.com/davecgh/go-spew v1.1.0
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7
github.com/gin-gonic/gin v0.0.0-20180512030042-bf7803815b0b
github.com/gin-gonic/gin v1.3.0
github.com/golang/protobuf v0.0.0-20170307001533-c9c7427a2a70
github.com/json-iterator/go v0.0.0-20170804232253-1cfa233923ea
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumC
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 h1:AzN37oI0cOS+cougNAV9szl6CVoj2RYwzS3DpUQNtlY=
github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
github.com/gin-gonic/gin v0.0.0-20180512030042-bf7803815b0b h1:499x87Cnm/smy5wEx5DhVM0zq1jHRJgyC1cNdnjHc5o=
github.com/gin-gonic/gin v0.0.0-20180512030042-bf7803815b0b/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y=
github.com/gin-gonic/gin v1.3.0 h1:kCmZyPklC0gVdL728E6Aj20uYBJV93nj/TkwBTKhFbs=
github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y=
github.com/golang/protobuf v0.0.0-20170307001533-c9c7427a2a70 h1:WKo1/VPcI3cbJwnIHISxazgDxbw+UIrktU3zNxzcp4c=
github.com/golang/protobuf v0.0.0-20170307001533-c9c7427a2a70/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/json-iterator/go v0.0.0-20170804232253-1cfa233923ea/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
Expand Down
28 changes: 19 additions & 9 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
"revisionTime": "2017-01-09T09:34:21Z"
},
{
"checksumSHA1": "MpR9RgPROnhWJpt8Npahzc+8798=",
"checksumSHA1": "90S9sFqcIo/uuwQzz1t/wYs7GEs=",
"path": "github.com/gin-gonic/gin",
"revision": "bf7803815b0baa22ff7a10457932882dfbf09925",
"revisionTime": "2018-05-12T03:00:42Z"
"revision": "b869fe1415e4b9eb52f247441830d502aece2d4d",
"revisionTime": "2018-08-14T08:58:52Z",
"version": "v1.3.0",
"versionExact": "v1.3.0"
},
{
"checksumSHA1": "O2rrqYI7QQjJYVx8+E8DC8rlIh0=",
Expand All @@ -43,16 +45,24 @@
"revisionTime": "2018-05-12T03:00:42Z"
},
{
"checksumSHA1": "YOwO5bkv3ei+GTVZqeEVB30kXDM=",
"checksumSHA1": "Y8Vu2NT4c2ve963fedBxoJyiU6s=",
"path": "github.com/gin-gonic/gin/internal/json",
"revision": "01ca2530d4b6c44c718b00c06f0e1d092572d49e",
"revisionTime": "2018-10-14T04:39:16Z"
},
{
"checksumSHA1": "woO1qIxIeQ1bcbPSiMfAKk3r4xg=",
"path": "github.com/gin-gonic/gin/json",
"revision": "81007d2ce0176f7a9ce52dd12e56edd7ef40e72c",
"revisionTime": "2017-08-04T05:45:59Z"
"revision": "b869fe1415e4b9eb52f247441830d502aece2d4d",
"revisionTime": "2018-08-14T08:58:52Z",
"version": "v1.3.0",
"versionExact": "v1.3.0"
},
{
"checksumSHA1": "DGs8sdsCkNHsU9+fQMM9XHb+ZCE=",
"checksumSHA1": "afLqBfX9SeIP6eeTZb3WwdTFaOo=",
"path": "github.com/gin-gonic/gin/render",
"revision": "bf7803815b0baa22ff7a10457932882dfbf09925",
"revisionTime": "2018-05-12T03:00:42Z"
"revision": "01ca2530d4b6c44c718b00c06f0e1d092572d49e",
"revisionTime": "2018-10-14T04:39:16Z"
},
{
"checksumSHA1": "kBeNcaKk56FguvPSUCEaH6AxpRc=",
Expand Down