-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
55 lines (51 loc) · 1.1 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
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/[email protected]
- 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