Build unittest by default in host build
EIVE/eive-obsw/pipeline/head Build started... Details

- Also update CI/CD to build host build
This commit is contained in:
Robin Müller 2022-05-04 17:38:08 +02:00
parent 4db35e8641
commit c83a177061
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 7 additions and 3 deletions

View File

@ -298,7 +298,11 @@ target_include_directories(${WATCHDOG_NAME} PUBLIC
)
# unittests
add_executable(${UNITTEST_NAME} EXCLUDE_FROM_ALL)
if(NOT TGT_BSP)
add_executable(${UNITTEST_NAME})
else()
add_executable(${UNITTEST_NAME} EXCLUDE_FROM_ALL)
endif()
if(EIVE_ADD_ETL_LIB)
endif()

View File

@ -24,11 +24,11 @@ pipeline {
}
}
}
stage('Unittests') {
stage('Build Host and Tests') {
steps {
dir(BUILDDIR_LINUX) {
sh 'cmake ..'
sh 'cmake --build . -t eive-unittest -j4'
sh 'cmake --build . -j4'
sh './eive-unittest'
}
}