mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:37:34 +08:00
Jenkins upload coverage to codecov.io
This commit is contained in:
Vendored
+3
-1
@@ -83,7 +83,6 @@ pipeline {
|
|||||||
sh 'ccache -z'
|
sh 'ccache -z'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
sh 'make coverage'
|
sh 'make coverage'
|
||||||
//sh 'bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}'
|
|
||||||
sh 'make coverage_html'
|
sh 'make coverage_html'
|
||||||
// publish html
|
// publish html
|
||||||
publishHTML target: [
|
publishHTML target: [
|
||||||
@@ -95,6 +94,9 @@ pipeline {
|
|||||||
reportFiles: '*',
|
reportFiles: '*',
|
||||||
reportName: 'Code Coverage'
|
reportName: 'Code Coverage'
|
||||||
]
|
]
|
||||||
|
withCredentials([string(credentialsId: 'ECL_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
||||||
|
sh 'curl -s https://codecov.io/bash | bash -s'
|
||||||
|
}
|
||||||
sh 'ccache -s'
|
sh 'ccache -s'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user