Commit 6adf9035 authored by Robert Knight's avatar Robert Knight

Move coverage reporting from Travis to Jenkins

Jenkins is the primary CI system and the source of truth for test
status, so it makes sense to generate coverage reports here too.

This also paves the way for potentially replacing codecov for coverage
status reporting with an alternative system in future which produces
output that devs find easier to work with.
parent 918025f4
...@@ -15,5 +15,3 @@ matrix: ...@@ -15,5 +15,3 @@ matrix:
- make lint - make lint
- env: ACTION=test - env: ACTION=test
node_js: '10' node_js: '10'
after_success:
yarn run report-coverage
...@@ -71,7 +71,15 @@ node { ...@@ -71,7 +71,15 @@ node {
stage('Test') { stage('Test') {
nodeEnv.inside("-e HOME=${workspace}") { nodeEnv.inside("-e HOME=${workspace}") {
sh "make checkformatting lint test" withCredentials([
string(credentialsId: 'codecov-token', variable: 'CODECOV_TOKEN')
]) {
sh "make checkformatting lint test"
sh """
export CODECOV_TOKEN=${env.CODECOV_TOKEN}
yarn run report-coverage
"""
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment