2021-07-29 12:06:14 +02:00
|
|
|
pipeline {
|
2022-02-17 18:31:21 +01:00
|
|
|
environment {
|
|
|
|
BUILDDIR_Q7 = 'build_q7',
|
|
|
|
BUILDDIR_LINUX = 'build_linux'
|
|
|
|
}
|
|
|
|
agent {
|
|
|
|
docker { image 'eive-obsw:d2'}
|
|
|
|
}
|
2021-07-29 12:06:14 +02:00
|
|
|
stages {
|
|
|
|
stage('Clean') {
|
|
|
|
steps {
|
2022-02-17 18:31:21 +01:00
|
|
|
sh 'rm -rf $BUILDDIR_Q7'
|
|
|
|
sh 'rm -rf $BUILDDIR_LINUX'
|
2021-07-29 12:06:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Q7S') {
|
|
|
|
steps {
|
2022-02-17 18:31:21 +01:00
|
|
|
dir(BUILDDIR_Q7) {
|
|
|
|
sh 'cmake -DTGT_BSP="arm/q7s" -DCMAKE_BUILD_TYPE=Debug ..'
|
2021-07-29 12:06:14 +02:00
|
|
|
sh 'cmake --build . -j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-02-17 18:31:21 +01:00
|
|
|
stage('Unittests') {
|
2021-07-29 12:06:14 +02:00
|
|
|
steps {
|
2022-02-17 18:31:21 +01:00
|
|
|
dir(BUILDDIR_LINUX) {
|
|
|
|
sh 'cmake ..'
|
|
|
|
//to be used when unittests are merged...
|
|
|
|
//sh 'cmake --build -t eive-unittests . -j'
|
|
|
|
//sh './eive-unittests'
|
|
|
|
}
|
2021-07-29 12:06:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|