2021-10-25 14:59:16 +02:00
|
|
|
pipeline {
|
2021-10-26 20:30:22 +02:00
|
|
|
environment {
|
2022-01-31 15:01:45 +01:00
|
|
|
BUILDDIR = 'build-tests'
|
2021-10-26 20:30:22 +02:00
|
|
|
}
|
2022-01-31 14:59:45 +01:00
|
|
|
agent {
|
|
|
|
dockerfile {
|
2022-01-31 15:01:45 +01:00
|
|
|
dir 'automation'
|
2022-01-31 14:59:45 +01:00
|
|
|
additionalBuildArgs '--no-cache'
|
|
|
|
reuseNode true
|
2021-10-26 20:58:34 +02:00
|
|
|
}
|
2022-01-31 14:59:45 +01:00
|
|
|
}
|
|
|
|
stages {
|
2022-01-26 15:30:01 +01:00
|
|
|
stage('Clean') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf $BUILDDIR'
|
|
|
|
}
|
|
|
|
}
|
2021-10-26 20:58:34 +02:00
|
|
|
stage('Configure') {
|
|
|
|
steps {
|
2021-10-26 20:53:08 +02:00
|
|
|
dir(BUILDDIR) {
|
2021-10-26 20:30:22 +02:00
|
|
|
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_UNITTESTS=ON ..'
|
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2021-10-26 20:47:53 +02:00
|
|
|
dir(BUILDDIR) {
|
2021-10-25 14:59:16 +02:00
|
|
|
sh 'cmake --build . -j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Unittests') {
|
|
|
|
steps {
|
2021-10-26 20:47:53 +02:00
|
|
|
dir(BUILDDIR) {
|
2021-10-25 14:59:16 +02:00
|
|
|
sh 'cmake --build . -- fsfw-tests_coverage -j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-27 21:32:40 +02:00
|
|
|
stage('Valgrind') {
|
|
|
|
steps {
|
|
|
|
dir(BUILDDIR) {
|
|
|
|
sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-25 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|