50 lines
1.2 KiB
Groovy
50 lines
1.2 KiB
Groovy
pipeline {
|
|
agent any
|
|
environment {
|
|
BUILDDIR = 'build-unittests'
|
|
}
|
|
stages {
|
|
stage('Configure') {
|
|
agent {
|
|
dockerfile {
|
|
dir 'automation'
|
|
additionalBuildArgs '--no-cache'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
sh 'rm -rf $BUILDDIR'
|
|
dir(env.BUILDDIR) {
|
|
sh 'cmake -DFSFW_OSAL=host -DFSFW_BUILD_UNITTESTS=ON ..'
|
|
}
|
|
}
|
|
}
|
|
stage('Build') {
|
|
agent {
|
|
dockerfile {
|
|
dir 'automation'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
dir(BUILDDIR) {
|
|
sh 'cmake --build . -j'
|
|
}
|
|
}
|
|
}
|
|
stage('Unittests') {
|
|
agent {
|
|
dockerfile {
|
|
dir 'automation'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
dir(BUILDDIR) {
|
|
sh 'cmake --build . -- fsfw-tests_coverage -j'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|