mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 15:10:23 +00:00
a4834f4a83
we have now an interface for filesystem backeds, this make easy to add new filesystem backends
23 lines
No EOL
982 B
YAML
23 lines
No EOL
982 B
YAML
language: go
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
go:
|
|
- "1.13.x"
|
|
|
|
env:
|
|
- GO111MODULE=on
|
|
|
|
before_script:
|
|
- sqlite3 sftpgo.db 'CREATE TABLE "users" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" varchar(255) NOT NULL UNIQUE, "password" varchar(255) NULL, "public_keys" text NULL, "home_dir" varchar(255) NOT NULL, "uid" integer NOT NULL, "gid" integer NOT NULL, "max_sessions" integer NOT NULL, "quota_size" bigint NOT NULL, "quota_files" integer NOT NULL, "permissions" text NOT NULL, "used_quota_size" bigint NOT NULL, "used_quota_files" integer NOT NULL, "last_quota_update" bigint NOT NULL, "upload_bandwidth" integer NOT NULL, "download_bandwidth" integer NOT NULL, "expiration_date" bigint NOT NULL, "last_login" bigint NOT NULL, "status" integer NOT NULL, "filters" TEXT NULL, "filesystem" text NULL);'
|
|
|
|
install:
|
|
- go get -v -t ./...
|
|
|
|
script:
|
|
- go test -v ./... -coverprofile=coverage.txt -covermode=atomic
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash) |