eive-obsw/automation/Jenkinsfile

35 lines
855 B
Plaintext
Raw Normal View History

pipeline {
2022-02-17 18:31:21 +01:00
environment {
2022-02-17 18:37:00 +01:00
BUILDDIR_Q7 = 'build_q7'
2022-02-17 18:31:21 +01:00
BUILDDIR_LINUX = 'build_linux'
}
agent {
docker { image 'eive-obsw:d2'}
}
stages {
stage('Clean') {
steps {
2022-02-17 18:31:21 +01:00
sh 'rm -rf $BUILDDIR_Q7'
sh 'rm -rf $BUILDDIR_LINUX'
}
}
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 ..'
sh 'cmake --build . -j'
}
}
}
2022-02-17 18:31:21 +01:00
stage('Unittests') {
steps {
2022-02-17 18:31:21 +01:00
dir(BUILDDIR_LINUX) {
sh 'cmake ..'
2022-02-18 11:38:23 +01:00
sh 'cmake --build -t eive-unittests . -j'
sh './eive-unittests'
2022-02-17 18:31:21 +01:00
}
}
}
}
}