mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Move travis-ci pipeline to go mod
This commit is contained in:
parent
8afd8d35b3
commit
7df5f9a70f
|
@ -1,7 +1,6 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.10.x
|
|
||||||
- 1.11.x
|
- 1.11.x
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
# - tip
|
# - tip
|
||||||
|
@ -12,10 +11,9 @@ before_install:
|
||||||
install:
|
install:
|
||||||
- export CGO_ENABLED="0"
|
- export CGO_ENABLED="0"
|
||||||
- go env
|
- go env
|
||||||
- go get -u ./weed/...
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test ./weed/...
|
- env GO111MODULE=on go test ./weed/...
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- make release
|
- make release
|
||||||
|
|
|
@ -23,7 +23,7 @@ type InitiateMultipartUploadResult struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s3a *S3ApiServer) createMultipartUpload(ctx context.Context, input *s3.CreateMultipartUploadInput) (output *InitiateMultipartUploadResult, code ErrorCode) {
|
func (s3a *S3ApiServer) createMultipartUpload(ctx context.Context, input *s3.CreateMultipartUploadInput) (output *InitiateMultipartUploadResult, code ErrorCode) {
|
||||||
uploadId, _ := uuid.NewV4()
|
uploadId := uuid.NewV4()
|
||||||
uploadIdString := uploadId.String()
|
uploadIdString := uploadId.String()
|
||||||
|
|
||||||
if err := s3a.mkdir(ctx, s3a.genUploadsFolder(*input.Bucket), uploadIdString, func(entry *filer_pb.Entry) {
|
if err := s3a.mkdir(ctx, s3a.genUploadsFolder(*input.Bucket), uploadIdString, func(entry *filer_pb.Entry) {
|
||||||
|
|
Loading…
Reference in a new issue