2021-07-29 12:06:14 +02:00
|
|
|
pipeline {
|
2022-02-17 18:31:21 +01:00
|
|
|
environment {
|
2023-03-21 15:28:14 +01:00
|
|
|
BUILDDIR_Q7S = 'build_q7s_fm'
|
|
|
|
BUILDDIR_Q7S_EM = 'build_q7s_em'
|
2022-02-17 18:31:21 +01:00
|
|
|
BUILDDIR_LINUX = 'build_linux'
|
|
|
|
}
|
|
|
|
agent {
|
2022-03-02 16:02:23 +01:00
|
|
|
docker {
|
2022-05-05 19:50:53 +02:00
|
|
|
image 'eive-obsw-ci:d5'
|
2022-03-02 16:02:23 +01:00
|
|
|
args '--sysctl fs.mqueue.msg_max=100'
|
|
|
|
}
|
2022-02-17 18:31:21 +01:00
|
|
|
}
|
2021-07-29 12:06:14 +02:00
|
|
|
stages {
|
|
|
|
stage('Clean') {
|
|
|
|
steps {
|
2023-03-21 15:28:14 +01:00
|
|
|
sh 'rm -rf $BUILDDIR_Q7S'
|
|
|
|
sh 'rm -rf $BUILDDIR_Q7S_EM'
|
2022-02-17 18:31:21 +01:00
|
|
|
sh 'rm -rf $BUILDDIR_LINUX'
|
2021-07-29 12:06:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Q7S') {
|
|
|
|
steps {
|
2023-03-21 15:30:09 +01:00
|
|
|
dir(BUILDDIR_Q7S) {
|
2022-02-17 18:31:21 +01:00
|
|
|
sh 'cmake -DTGT_BSP="arm/q7s" -DCMAKE_BUILD_TYPE=Debug ..'
|
2023-03-21 15:28:14 +01:00
|
|
|
sh 'cmake --build . -j6'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Q7S EM') {
|
|
|
|
steps {
|
|
|
|
dir(BUILDDIR_Q7S_EM) {
|
|
|
|
sh 'cmake -DTGT_BSP="arm/q7s" -DEIVE_Q7S_EM=ON -DCMAKE_BUILD_TYPE=Debug ..'
|
|
|
|
sh 'cmake --build . -j6'
|
2021-07-29 12:06:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-04 17:38:08 +02:00
|
|
|
stage('Build Host and Tests') {
|
2021-07-29 12:06:14 +02:00
|
|
|
steps {
|
2022-02-17 18:31:21 +01:00
|
|
|
dir(BUILDDIR_LINUX) {
|
|
|
|
sh 'cmake ..'
|
2023-03-21 15:28:14 +01:00
|
|
|
sh 'cmake --build . -j6'
|
2022-02-18 11:47:42 +01:00
|
|
|
sh './eive-unittest'
|
2022-02-17 18:31:21 +01:00
|
|
|
}
|
2021-07-29 12:06:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|