|
@@ -18,10 +18,8 @@ steps:
|
|
|
commands:
|
|
|
- git clone -b develop http://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git
|
|
|
- name: test
|
|
|
- image: golang:1.17
|
|
|
+ image: plugins/docker
|
|
|
commands:
|
|
|
- - pwd
|
|
|
- - ls -l
|
|
|
- cd /drone/src/kpt-tmr-group
|
|
|
- go test `go list ./... | grep -v -E "mock|store|test|fake|cmd|bin|backend|google|logger|proto"` -coverprofile .cover.txt
|
|
|
- go tool cover -func .cover.txt
|
|
@@ -53,6 +51,8 @@ trigger:
|
|
|
event:
|
|
|
include:
|
|
|
- push
|
|
|
+ exclude:
|
|
|
+ - pull_request
|
|
|
|
|
|
|
|
|
volumes:
|