-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Lhussiez
committed
Oct 14, 2019
1 parent
d2f3a0a
commit 0d58207
Showing
3 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,51 @@ | ||
--- | ||
kind: pipeline | ||
name: default | ||
type: docker | ||
|
||
steps: | ||
- name: fetch | ||
image: docker:git | ||
commands: | ||
- git fetch --tags | ||
|
||
- name: test | ||
image: golang:latest | ||
image: golang:1.13.1 | ||
volumes: | ||
- name: deps | ||
path: /go | ||
commands: | ||
- go test -race -coverprofile=coverage.txt -covermode=atomic | ||
environment: | ||
GO111MODULE: "on" | ||
|
||
- name: linter | ||
image: golang:1.13.1 | ||
volumes: | ||
- name: deps | ||
path: /go | ||
commands: | ||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.20.0 | ||
- ./bin/golangci-lint run | ||
|
||
- name: coverage | ||
image: plugins/codecov | ||
settings: | ||
token: | ||
from_secret: codecov_token | ||
files: | ||
- coverage.txt | ||
- coverage.txt | ||
|
||
- name: telegram | ||
image: appleboy/drone-telegram | ||
settings: | ||
to: 790376882 | ||
format: markdown | ||
token: | ||
from_secret: telegram_token | ||
message: > | ||
*{{repo.name}}* | ||
[Build {{build.number}}]({{build.link}}) by {{commit.author}} {{#success build.status}}succeeded{{else}}failed{{/success}} in {{buildtime build.started}} | ||
`{{truncate commit.sha 8}}`: "{{commit.message}}" | ||
when: | ||
status: | ||
- success | ||
- failure | ||
|
||
volumes: | ||
- name: deps | ||
host: | ||
path: /var/lib/cache/godeps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters