mirror of
https://github.com/rclone/rclone.git
synced 2024-12-04 06:16:39 +01:00
ec4e0e4d58
See upstream issue: https://gitea.com/goftp/server/issues/117
46 lines
889 B
YAML
46 lines
889 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 -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
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
- pull_request
|
|
|
|
services:
|
|
- name: minio
|
|
image: minio/minio:RELEASE.2019-10-12T01-39-57Z
|
|
commands:
|
|
- minio server ./data
|
|
environment:
|
|
MINIO_ACCESS_KEY:
|
|
from_secret: aws_access_key_id
|
|
MINIO_SECRET_KEY:
|
|
from_secret: aws_secret_access_key |