sftpgo/.travis.yml

23 lines
982 B
YAML
Raw Normal View History

2019-07-21 09:08:57 +00:00
language: go
2019-07-27 20:45:11 +00:00
os:
- linux
- osx
2019-07-21 09:08:57 +00:00
go:
2019-09-04 06:29:23 +00:00
- "1.13.x"
2019-07-21 09:08:57 +00:00
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);'
2019-07-21 09:08:57 +00:00
install:
- go get -v -t ./...
script:
2019-07-26 09:34:44 +00:00
- go test -v ./... -coverprofile=coverage.txt -covermode=atomic
2019-07-21 09:08:57 +00:00
2019-07-26 09:34:44 +00:00
after_success:
- bash <(curl -s https://codecov.io/bash)