Last change
on this file since 67 was 67, checked in by Izuru Yakumo, 23 months ago |
Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
1.1 KB
|
Line | |
---|
1 | ---
|
---|
2 | kind: pipeline
|
---|
3 | name: default
|
---|
4 | type: docker
|
---|
5 |
|
---|
6 | steps:
|
---|
7 | - name: test
|
---|
8 | image: golang:latest
|
---|
9 | volumes:
|
---|
10 | - name: deps
|
---|
11 | path: /go
|
---|
12 | commands:
|
---|
13 | - go test -race -coverprofile=coverage.txt -covermode=atomic
|
---|
14 |
|
---|
15 | - name: linter
|
---|
16 | image: golang:latest
|
---|
17 | volumes:
|
---|
18 | - name: deps
|
---|
19 | path: /go
|
---|
20 | commands:
|
---|
21 | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
|
---|
22 | - ./bin/golangci-lint run --timeout 5m
|
---|
23 | - rm -r ./bin/
|
---|
24 |
|
---|
25 | - name: coverage
|
---|
26 | image: plugins/codecov
|
---|
27 | settings:
|
---|
28 | token:
|
---|
29 | from_secret: codecov_token
|
---|
30 | files:
|
---|
31 | - coverage.txt
|
---|
32 |
|
---|
33 | - name: telegram
|
---|
34 | image: appleboy/drone-telegram
|
---|
35 | settings:
|
---|
36 | to: 790376882
|
---|
37 | format: markdown
|
---|
38 | token:
|
---|
39 | from_secret: telegram_token
|
---|
40 | message: >
|
---|
41 | *{{repo.name}}*
|
---|
42 | [Build {{build.number}}]({{build.link}}) by {{commit.author}} {{#success build.status}}succeeded{{else}}failed{{/success}} in {{buildtime build.started}}
|
---|
43 | `{{truncate commit.sha 8}}`: "{{commit.message}}"
|
---|
44 | when:
|
---|
45 | status:
|
---|
46 | - success
|
---|
47 | - failure
|
---|
48 |
|
---|
49 | volumes:
|
---|
50 | - name: deps
|
---|
51 | host:
|
---|
52 | path: /var/lib/cache/godeps/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.