eive-obsw/automation/Jenkinsfile
Robin Mueller c83a177061
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...
Build unittest by default in host build
- Also update CI/CD to build host build
2022-05-04 17:38:08 +02:00

38 lines
923 B
Groovy

pipeline {
environment {
BUILDDIR_Q7 = 'build_q7'
BUILDDIR_LINUX = 'build_linux'
}
agent {
docker {
image 'eive-obsw-ci:d4'
args '--sysctl fs.mqueue.msg_max=100'
}
}
stages {
stage('Clean') {
steps {
sh 'rm -rf $BUILDDIR_Q7'
sh 'rm -rf $BUILDDIR_LINUX'
}
}
stage('Build Q7S') {
steps {
dir(BUILDDIR_Q7) {
sh 'cmake -DTGT_BSP="arm/q7s" -DCMAKE_BUILD_TYPE=Debug ..'
sh 'cmake --build . -j4'
}
}
}
stage('Build Host and Tests') {
steps {
dir(BUILDDIR_LINUX) {
sh 'cmake ..'
sh 'cmake --build . -j4'
sh './eive-unittest'
}
}
}
}
}