mirror of
https://github.com/rclone/rclone.git
synced 2024-12-30 19:08:58 +01:00
c7eae60944
See upstream issue: https://gitea.com/goftp/server/issues/117
47 lines
931 B
YAML
47 lines
931 B
YAML
---
|
|
kind: pipeline
|
|
name: testing
|
|
|
|
steps:
|
|
- name: fetch-tags
|
|
pull: default
|
|
image: docker:git
|
|
commands:
|
|
- git fetch --tags --force
|
|
when:
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
|
|
- name: test
|
|
pull: always
|
|
image: golang:1.13
|
|
commands:
|
|
- export PATH=$PATH:/go:/srv/app/bin
|
|
- go vet ./...
|
|
- go test -v -race ./...
|
|
environment:
|
|
GOPATH: /srv/app
|
|
MINIO_SERVER_ENDPOINT: minio:9000
|
|
MINIO_SERVER_ACCESS_KEY_ID:
|
|
from_secret: aws_access_key_id
|
|
MINIO_SERVER_SECRET_KEY:
|
|
from_secret: aws_secret_access_key
|
|
MINIO_SERVER_BUCKET: test
|
|
GOPROXY: https://goproxy.cn,direct
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
- pull_request
|
|
|
|
services:
|
|
- name: minio
|
|
image: minio/minio:RELEASE.2020-03-14T02-21-58Z
|
|
commands:
|
|
- minio server ./data
|
|
environment:
|
|
MINIO_ACCESS_KEY:
|
|
from_secret: aws_access_key_id
|
|
MINIO_SECRET_KEY:
|
|
from_secret: aws_secret_access_key |