-
Notifications
You must be signed in to change notification settings - Fork 7
/
.drone.yml
63 lines (55 loc) · 1.27 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
56
57
58
59
60
61
62
63
kind: pipeline
name: default
workspace:
base: /go
path: src/github.com/dwin/goArgonPass
steps:
- name: build-alpine_latest
image: golang:alpine
pull: always
environment:
GOFLAGS: -mod=readonly
commands:
- go build -race -v .
- name: test-1.13-alpine
image: golang:1.13-alpine
commands:
- apk add --update bash build-base git
- go get
- scripts/go_coverage.sh
- name: test-1.14-alpine
image: golang:1.14-alpine
commands:
- apk add --update bash build-base git
- go get
- scripts/go_coverage.sh
- name: test-1.15-alpine
image: golang:1.15-alpine
commands:
- apk add --update bash build-base git
- go get
- scripts/go_coverage.sh
- name: test-alpine_latest
image: golang:alpine
pull: always
volumes:
- name: cache
path: /tmp/cache
commands:
- apk add --update bash build-base git
- go get
- go test -coverprofile=/tmp/cache/coverage.txt -covermode=atomic ./...
- name: coverage
image: plugins/codecov
volumes:
- name: cache
path: /tmp/cache
settings:
required: true
token:
from_secret: codecov_token
files:
- /tmp/cache/coverage.txt
volumes:
- name: cache
temp: {}