Browse Source

add drone and go mod support

master
Lunny Xiao 11 months ago
parent
commit
4f3f38c2a6
Signed by: lunny <xiaolunwen@gmail.com> GPG Key ID: C3B7C91B632F738A
4 changed files with 20 additions and 9 deletions
  1. +13
    -0
      .drone.yml
  2. +3
    -0
      README.md
  3. +1
    -7
      go.mod
  4. +3
    -2
      go.sum

+ 13
- 0
.drone.yml View File

@ -0,0 +1,13 @@
kind: pipeline
name: default
steps:
- name: test
image: golang:1.12
environment:
- GO111MODULE=on
- GOPROXY=https://goproxy.cn
commands:
- go build -v
- go vet ./...
- go test -v -race -coverprofile=coverage.txt -covermode=atomic

+ 3
- 0
README.md View File

@ -0,0 +1,3 @@
# file-driver
driver for read server file system

+ 1
- 7
go.mod View File

@ -2,10 +2,4 @@ module gitea.com/goftp/file-driver
go 1.12
require (
github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9 // indirect
github.com/goftp/server v0.0.0-20190304020633-eabccc535b5a // indirect
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf // indirect
github.com/stretchr/testify v1.3.0 // indirect
goftp.io/server v0.0.0-20190712054601-1149070ae46b
)
require goftp.io/server v0.0.0-20190812034929-9b3874d17690

+ 3
- 2
go.sum View File

@ -1,8 +1,7 @@
gitea.com/goftp/file-driver v0.0.0-20190712091345-f79c2ed973f8/go.mod h1:ghdogu0Da3rwYCSJ20JPgTiMcDpzeRbzvuFIOOW3G7w=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9 h1:cC0Hbb+18DJ4i6ybqDybvj4wdIDS4vnD0QEci98PgM8=
github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9/go.mod h1:GpOj6zuVBG3Inr9qjEnuVTgBlk2lZ1S9DcoFiXWyKss=
github.com/goftp/server v0.0.0-20190304020633-eabccc535b5a h1:XTJuuzIub3zu2FgPqdFM9XFYYisXWu2hN/rFwayAIcY=
github.com/goftp/server v0.0.0-20190304020633-eabccc535b5a/go.mod h1:k/SS6VWkxY7dHPhoMQ8IdRu8L4lQtmGbhyXGg+vCnXE=
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf h1:2IYBd5TD/maMqTU2YUzp2tJL4cNaOYQ9EBullN9t9pk=
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf/go.mod h1:lli8NYPQOFy3O++YmYbqVgOcQ1JPCwdOy+5zSjKJ9qY=
@ -13,3 +12,5 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
goftp.io/server v0.0.0-20190712054601-1149070ae46b h1:8HxfsOvOoMtPYnbNxyvhzlMy3PlqBUmXGdC1qXwUltc=
goftp.io/server v0.0.0-20190712054601-1149070ae46b/go.mod h1:xreggPYu7ZuNe9PfbxiQca7bYGwU44IvlCCg3KzWJtQ=
goftp.io/server v0.0.0-20190812034929-9b3874d17690 h1:vHUbHALX1kwsxK6gFQeY19+10zk/pSABN/0vumWLCxQ=
goftp.io/server v0.0.0-20190812034929-9b3874d17690/go.mod h1:99FISrRpwKfaL4Ey/dX8N48WToveng/s2OXR5sJ3cnc=