diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index 271366062..08918b5af 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -1,6 +1,7 @@ pipeline { environment { - BUILDDIR = 'cmake-build-tests' + BUILDDIR_HOST = 'cmake-build-tests-host' + BUILDDIR_LINUX = 'cmake-build-tests-linux' DOCDDIR = 'cmake-build-documentation' } agent { @@ -10,39 +11,78 @@ pipeline { } } stages { + stage('Linux') { + stages{ stage('Clean') { steps { - sh 'rm -rf $BUILDDIR' + sh 'rm -rf $BUILDDIR_HOST' } } stage('Configure') { steps { - dir(BUILDDIR) { + dir(BUILDDIR_HOST) { sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..' } } } stage('Build') { steps { - dir(BUILDDIR) { + dir(BUILDDIR_HOST) { sh 'cmake --build . -j4' } } } stage('Unittests') { steps { - dir(BUILDDIR) { + dir(BUILDDIR_HOST) { sh 'cmake --build . -- fsfw-tests_coverage -j4' } } } stage('Valgrind') { steps { - dir(BUILDDIR) { + dir(BUILDDIR_HOST) { sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests' } } } + }} + stage('Linux') { + stages{ + stage('Clean') { + steps { + sh 'rm -rf $BUILDDIR_HOST' + } + } + stage('Configure') { + steps { + dir(BUILDDIR_LINUX) { + sh 'cmake -DFSFW_OSAL=linux -DFSFW_BUILD_TESTS=ON -DFSFW_CICD_BUILD=ON ..' + } + } + } + stage('Build') { + steps { + dir(BUILDDIR_LINUX) { + sh 'cmake --build . -j4' + } + } + } + stage('Unittests') { + steps { + dir(BUILDDIR_LINUX) { + sh 'cmake --build . -- fsfw-tests_coverage -j4' + } + } + } + stage('Valgrind') { + steps { + dir(BUILDDIR_LINUX) { + sh 'valgrind --leak-check=full --error-exitcode=1 ./fsfw-tests' + } + } + } + }} stage('Documentation') { when { branch 'development'