windows and clang builds in CI

This commit is contained in:
Ulrich Mohr 2023-02-06 22:45:00 +01:00
parent efc2773f84
commit 4b52e5bec4
2 changed files with 17 additions and 6 deletions

View File

@ -4,28 +4,29 @@ pipeline {
BUILDDIR_LINUX = 'cmake-build-tests-linux' BUILDDIR_LINUX = 'cmake-build-tests-linux'
BUILDDIR_FREERTOS = 'cmake-build-tests-freertos' BUILDDIR_FREERTOS = 'cmake-build-tests-freertos'
BUILDDIR_RTEMS = 'cmake-build-tests-rtems' BUILDDIR_RTEMS = 'cmake-build-tests-rtems'
BUILDDIR_WIN = 'cmake-build-tests-windows'
DOCDDIR = 'cmake-build-documentation' DOCDDIR = 'cmake-build-documentation'
} }
agent { agent {
docker { docker {
image 'fsfw-ci:d7' image 'fsfw-ci:d8'
args '--network host --sysctl fs.mqueue.msg_max=100' args '--network host --sysctl fs.mqueue.msg_max=100'
} }
} }
stages { stages {
stage('Host') { stage('Host-clang') {
steps { steps {
sh 'rm -rf $BUILDDIR_HOST' sh 'rm -rf $BUILDDIR_HOST'
dir(BUILDDIR_HOST) { dir(BUILDDIR_HOST) {
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..' sh 'CC=clang CXX=clang++ cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..'
sh 'cmake --build . -j4' sh 'cmake --build . -j4'
sh 'cmake --build . -- fsfw-tests_coverage -j4' sh 'cmake --build . -- fsfw-tests_coverage -j4'
sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests' sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests'
} }
} }
} }
stage('Linux') { stage('Linux-gcc') {
steps { steps {
sh 'rm -rf $BUILDDIR_LINUX' sh 'rm -rf $BUILDDIR_LINUX'
@ -37,7 +38,7 @@ pipeline {
} }
} }
} }
stage('FreeRTOS') { stage('FreeRTOS-gcc') {
steps { steps {
sh 'rm -rf $BUILDDIR_FREERTOS' sh 'rm -rf $BUILDDIR_FREERTOS'
@ -49,7 +50,7 @@ pipeline {
} }
} }
} }
stage('rtems') { stage('rtems-gcc') {
steps { steps {
sh 'rm -rf $BUILDDIR_RTEMS' sh 'rm -rf $BUILDDIR_RTEMS'
@ -60,6 +61,16 @@ pipeline {
} }
} }
} }
stage('Host-msvc') {
steps {
sh 'rm -rf $BUILDDIR_WIN'
dir(BUILDDIR_WIN) {
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_TESTS_GEN_COV=OFF -DFSFW_CICD_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../unittests/testcfg/windows/cmake/x64-windows-toolchain.cmake -GNinja ..'
sh 'cmake --build . -j4'
}
}
}
stage('Documentation') { stage('Documentation') {
when { when {
branch 'development' branch 'development'