mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Jenkins clang scan-build output publisher
This commit is contained in:
Vendored
+7
-5
@@ -249,10 +249,11 @@ pipeline {
|
|||||||
sh 'make scan-build'
|
sh 'make scan-build'
|
||||||
// publish html
|
// publish html
|
||||||
publishHTML target: [
|
publishHTML target: [
|
||||||
|
reportTitles: 'clang static analyzer',
|
||||||
allowMissing: false,
|
allowMissing: false,
|
||||||
alwaysLinkToLastBuild: false,
|
alwaysLinkToLastBuild: true,
|
||||||
keepAll: true,
|
keepAll: true,
|
||||||
reportDir: 'build/scan-build/*',
|
reportDir: 'build/scan-build/report_latest',
|
||||||
reportFiles: '*',
|
reportFiles: '*',
|
||||||
reportName: 'Clang Static Analyzer'
|
reportName: 'Clang Static Analyzer'
|
||||||
]
|
]
|
||||||
@@ -284,12 +285,13 @@ pipeline {
|
|||||||
sh 'make cppcheck'
|
sh 'make cppcheck'
|
||||||
// publish html
|
// publish html
|
||||||
publishHTML target: [
|
publishHTML target: [
|
||||||
|
reportTitles: 'Cppcheck',
|
||||||
allowMissing: false,
|
allowMissing: false,
|
||||||
alwaysLinkToLastBuild: false,
|
alwaysLinkToLastBuild: true,
|
||||||
keepAll: true,
|
keepAll: true,
|
||||||
reportDir: 'build/cppcheck/*',
|
reportDir: 'build/cppcheck/',
|
||||||
reportFiles: '*',
|
reportFiles: '*',
|
||||||
reportName: 'cppcheck'
|
reportName: 'Cppcheck'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -320,9 +320,12 @@ tests_coverage:
|
|||||||
scan-build:
|
scan-build:
|
||||||
@export CCC_CC=clang
|
@export CCC_CC=clang
|
||||||
@export CCC_CXX=clang++
|
@export CCC_CXX=clang++
|
||||||
|
@rm -rf $(SRC_DIR)/build/posix_sitl_default-scan-build
|
||||||
|
@rm -rf $(SRC_DIR)/build/scan-build/report_latest
|
||||||
@mkdir -p $(SRC_DIR)/build/posix_sitl_default-scan-build
|
@mkdir -p $(SRC_DIR)/build/posix_sitl_default-scan-build
|
||||||
@cd $(SRC_DIR)/build/posix_sitl_default-scan-build && scan-build cmake $(SRC_DIR) -GNinja -DCONFIG=posix_sitl_default
|
@cd $(SRC_DIR)/build/posix_sitl_default-scan-build && scan-build cmake $(SRC_DIR) -GNinja -DCONFIG=posix_sitl_default
|
||||||
@scan-build -o $(SRC_DIR)/build/scan-build cmake --build $(SRC_DIR)/build/posix_sitl_default-scan-build
|
@scan-build -o $(SRC_DIR)/build/scan-build cmake --build $(SRC_DIR)/build/posix_sitl_default-scan-build
|
||||||
|
@find $(SRC_DIR)/build/scan-build -maxdepth 1 -mindepth 1 -type d -exec cp -r "{}" $(SRC_DIR)/build/scan-build/report_latest \;
|
||||||
|
|
||||||
posix_sitl_default-clang:
|
posix_sitl_default-clang:
|
||||||
@mkdir -p $(SRC_DIR)/build/posix_sitl_default-clang
|
@mkdir -p $(SRC_DIR)/build/posix_sitl_default-clang
|
||||||
|
|||||||
Reference in New Issue
Block a user