File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ node('linux') {
5454 stage ' Install Linux'
5555 make ' bootstrap'
5656 stage ' Test Linux'
57- make ' test'
57+ make ' test-style'
58+ make ' test-cover'
59+ stage ' Upload to Codecov'
60+ withCredentials([[$class : ' StringBinding' , credentialsId : ' 2da033eb-2e34-4efd-b090-ad892f348065' , variable : ' CODECOV_TOKEN' ]]) {
61+ sh ' curl -s https://codecov.io/bash | bash'
62+ }
5863 }
5964}
6065
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ test-style:
2727test-unit :
2828 ${DEV_ENV_PREFIX_CGO_ENABLED} ${DEV_ENV_IMAGE} sh -c ' ${GOTEST} $$(glide nv)'
2929
30+ test-cover : test-style
31+ ${DEV_ENV_PREFIX_CGO_ENABLED} ${DEV_ENV_IMAGE} test-cover.sh
32+
3033# Set local user as owner for files
3134fileperms :
3235 ${DEV_ENV_PREFIX_CGO_ENABLED} ${DEV_ENV_IMAGE} chown -R ${UID} :${GID} .
You can’t perform that action at this time.
0 commit comments