|
@@ -17,13 +17,6 @@ steps:
|
|
|
image: alpine/git
|
|
|
commands:
|
|
|
- git clone -b develop http://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git
|
|
|
- - name: test
|
|
|
- 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: plugins/docker
|
|
|
volumes:
|