Skip to content

Commit 1cd1f5c

Browse files
feat(tests): add codecov (#65)
1 parent 5238576 commit 1cd1f5c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ test-style:
2727
test-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
3134
fileperms:
3235
${DEV_ENV_PREFIX_CGO_ENABLED} ${DEV_ENV_IMAGE} chown -R ${UID}:${GID} .

0 commit comments

Comments
 (0)