mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fail on lint errors during CI build.
This commit is contained in:
parent
d67f47927c
commit
d31f256020
@ -13,6 +13,7 @@ env:
|
||||
- ARCH=i686
|
||||
|
||||
script:
|
||||
- make
|
||||
- make test GOFLAGS="-race"
|
||||
- make coverage
|
||||
|
||||
|
4
Makefile
4
Makefile
@ -83,8 +83,8 @@ fmt:
|
||||
|
||||
lint:
|
||||
@echo "Running $@:"
|
||||
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint github.com/minio/minio/cmd...
|
||||
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint github.com/minio/minio/pkg...
|
||||
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint -set_exit_status github.com/minio/minio/cmd...
|
||||
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint -set_exit_status github.com/minio/minio/pkg...
|
||||
|
||||
ineffassign:
|
||||
@echo "Running $@:"
|
||||
|
@ -58,7 +58,7 @@ func TestPostPolicyForm(t *testing.T) {
|
||||
for i, tt := range testCases {
|
||||
formValues := make(map[string]string)
|
||||
formValues["Bucket"] = tt.Bucket
|
||||
formValues["Acl"] = tt.Acl
|
||||
formValues["Acl"] = tt.ACL
|
||||
formValues["Key"] = tt.Key
|
||||
formValues["X-Amz-Date"] = tt.XAmzDate
|
||||
formValues["X-Amz-Meta-Uuid"] = tt.XAmzMetaUUID
|
||||
|
Loading…
Reference in New Issue
Block a user