2020-02-25 15:20:57 +01:00
|
|
|
---
|
2019-08-26 19:00:17 +02:00
|
|
|
kind: pipeline
|
2020-02-25 15:20:57 +01:00
|
|
|
name: testing
|
2019-08-26 19:00:17 +02:00
|
|
|
|
|
|
|
steps:
|
2020-02-25 15:20:57 +01:00
|
|
|
- name: fetch-tags
|
|
|
|
pull: default
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags --force
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
|
2019-08-26 19:00:17 +02:00
|
|
|
- name: test
|
2020-02-25 15:20:57 +01:00
|
|
|
pull: always
|
|
|
|
image: golang:1.13
|
2019-08-26 19:00:17 +02:00
|
|
|
commands:
|
2020-02-25 15:20:57 +01:00
|
|
|
- export PATH=$PATH:/go:/srv/app/bin
|
|
|
|
- go vet ./...
|
2020-06-29 15:18:32 +02:00
|
|
|
- go test -race ./...
|
2020-02-25 15:20:57 +01:00
|
|
|
environment:
|
|
|
|
GOPATH: /srv/app
|
2020-06-27 16:45:12 +02:00
|
|
|
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
|
2020-02-25 15:20:57 +01:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2020-06-27 16:45:12 +02:00
|
|
|
- pull_request
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: minio
|
2020-06-29 15:18:32 +02:00
|
|
|
image: minio/minio:RELEASE.2019-10-12T01-39-57Z
|
2020-06-27 16:45:12 +02:00
|
|
|
commands:
|
|
|
|
- minio server ./data
|
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
MINIO_SECRET_KEY:
|
|
|
|
from_secret: aws_secret_access_key
|