代码拉取完成,页面将自动刷新
---
kind: pipeline
name: testing
steps:
- name: fetch-tags
pull: default
image: docker:git
commands:
- git fetch --tags --force
when:
event:
exclude:
- pull_request
- name: linter
image: golang:1.14
commands:
- go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.30.0
- golangci-lint run
environment:
GOPROXY: https://goproxy.cn,direct
- 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。