-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
37 lines (33 loc) · 908 Bytes
/
.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
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: tests
image: golang
environment:
GO111MODULE: on
CC_TEST_REPORTER_ID: { from_secret: CC_TEST_REPORTER_ID }
commands:
- mkdir dist
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 --output test-reporter
- chmod +x test-reporter
- ./test-reporter before-build
- go test --race -coverprofile c.out ./...
- ./test-reporter after-build -p github.com/idestis/gort
- name: release binaries
image: goreleaser/goreleaser:v0.108.0
commands:
- git diff
- goreleaser release --rm-dist --skip-validate
environment:
GO111MODULE: on
GITHUB_TOKEN: { from_secret: GITHUB_TOKEN }
when:
event:
- tag