Skip to content
Snippets Groups Projects
Commit d6f19a96 authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Fixed check-header subjobs.

Removed include-what-you-use for the moment as it segfaults.
parent ab3e004d
No related branches found
No related tags found
No related merge requests found
...@@ -522,8 +522,8 @@ pipeline { ...@@ -522,8 +522,8 @@ pipeline {
} }
} }
} }
// ************************* Analyzers ********************************* // ************************* Check headers *********************************
stage('Analyzers') { stage('Check headers') {
when { when {
beforeAgent true beforeAgent true
expression { return stage_required.build || stage_required.full } expression { return stage_required.build || stage_required.full }
...@@ -541,14 +541,16 @@ pipeline { ...@@ -541,14 +541,16 @@ pipeline {
script { script {
sh 'git submodule sync' sh 'git submodule sync'
sh 'find $CONAN_USER_HOME -name "system_reqs.txt" -exec rm {} \\;' sh 'find $CONAN_USER_HOME -name "system_reqs.txt" -exec rm {} \\;'
configure { try {
cmakeOptions = configure {
"-DBUILD_SHARED_LIBS=${build_shared} " + cmakeOptions = '-DOGS_CHECK_HEADER_COMPILATION=ON'
'"-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE=include-what-you-use;-Xiwyu;--mapping_file=../scripts/jenkins/iwyu-mappings.imp" ' + dir = 'build-check-header'
'-DCMAKE_LINK_WHAT_YOU_USE=ON ' }
config = 'Release' }
catch(err) {
echo "check-header failed!"
sh 'cat build-check-header/CMakeFiles/CMakeError.log'
} }
build { target = 'check-header' }
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment