Fail on lint errors during CI build.

master
Harshavardhana 8 years ago
parent d67f47927c
commit d31f256020
  1. 1
      .travis.yml
  2. 4
      Makefile
  3. 2
      cmd/postpolicyform_test.go

@ -13,6 +13,7 @@ env:
- ARCH=i686 - ARCH=i686
script: script:
- make
- make test GOFLAGS="-race" - make test GOFLAGS="-race"
- make coverage - make coverage

@ -83,8 +83,8 @@ fmt:
lint: lint:
@echo "Running $@:" @echo "Running $@:"
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint github.com/minio/minio/cmd... @GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint -set_exit_status 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/pkg...
ineffassign: ineffassign:
@echo "Running $@:" @echo "Running $@:"

@ -58,7 +58,7 @@ func TestPostPolicyForm(t *testing.T) {
for i, tt := range testCases { for i, tt := range testCases {
formValues := make(map[string]string) formValues := make(map[string]string)
formValues["Bucket"] = tt.Bucket formValues["Bucket"] = tt.Bucket
formValues["Acl"] = tt.Acl formValues["Acl"] = tt.ACL
formValues["Key"] = tt.Key formValues["Key"] = tt.Key
formValues["X-Amz-Date"] = tt.XAmzDate formValues["X-Amz-Date"] = tt.XAmzDate
formValues["X-Amz-Meta-Uuid"] = tt.XAmzMetaUUID formValues["X-Amz-Meta-Uuid"] = tt.XAmzMetaUUID

Loading…
Cancel
Save