mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
refactor: add group build for drone.
This commit is contained in:
parent
14fddbbba5
commit
62957e6f1b
39
.drone.yml
39
.drone.yml
@ -9,24 +9,49 @@ clone:
|
||||
tags: true
|
||||
|
||||
pipeline:
|
||||
lint:
|
||||
image: appleboy/golang-testing
|
||||
pull: true
|
||||
group: golang
|
||||
environment:
|
||||
TAGS: netgo
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make vet
|
||||
- make lint
|
||||
- make test
|
||||
- make test-vendor
|
||||
|
||||
lint:
|
||||
image: appleboy/golang-testing
|
||||
pull: true
|
||||
group: golang
|
||||
environment:
|
||||
TAGS: netgo
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make build
|
||||
|
||||
test:
|
||||
image: appleboy/golang-testing
|
||||
pull: true
|
||||
group: golang
|
||||
environment:
|
||||
TAGS: netgo
|
||||
GOPATH: /srv/app
|
||||
secrets: [ codecov_token ]
|
||||
commands:
|
||||
- make ssh-server
|
||||
- make vet
|
||||
- make lint
|
||||
# - make test
|
||||
- make test-vendor
|
||||
- coverage all
|
||||
- make coverage
|
||||
- make build
|
||||
|
||||
codecov:
|
||||
image: robertstettner/drone-codecov
|
||||
secrets: [ codecov_token ]
|
||||
files:
|
||||
- .cover/coverage.txt
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
event: [ push, pull_request ]
|
||||
status: [ success ]
|
||||
|
||||
publish_latest:
|
||||
image: plugins/docker
|
||||
|
Loading…
Reference in New Issue
Block a user