Merge pull request 'Build unittest by default in host build' (#244) from mueller/ci-cd-build-host-and-unittest-by-default into develop
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
Reviewed-on: #244 Reviewed-by: Jakob.Meier <meierj@irs.uni-stuttgart.de>
This commit is contained in:
commit
6893b895e3
@ -12,6 +12,9 @@ list yields a list of all related PRs for each release.
|
||||
|
||||
# [v1.12.0]
|
||||
|
||||
- Build unittest as default side product of hosted builds
|
||||
- Let CI/CD build host build and run unittest side product in same step
|
||||
|
||||
## Changed
|
||||
|
||||
- Better RTD names denoting their purpose (and location consequently)
|
||||
|
@ -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()
|
||||
|
4
automation/Jenkinsfile
vendored
4
automation/Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user