|
@@ -18,14 +18,14 @@ steps:
|
|
|
commands:
|
|
|
- git clone -b develop http://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git
|
|
|
- name: test
|
|
|
- image: plugins/docker
|
|
|
+ image: golang:1.17
|
|
|
commands:
|
|
|
- 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
|
|
|
- rm .cover.txt
|
|
|
- name: build
|
|
|
- image: goland:1.17
|
|
|
+ image: plugins/docker
|
|
|
volumes:
|
|
|
- name: hosts
|
|
|
path: /etc/hosts
|
|
@@ -48,9 +48,9 @@ trigger:
|
|
|
branch:
|
|
|
include:
|
|
|
- develop
|
|
|
- event:
|
|
|
- include:
|
|
|
- - push
|
|
|
+ event:
|
|
|
+ include:
|
|
|
+ - push
|
|
|
|
|
|
|
|
|
volumes:
|