36 lines
921 B
Groovy
36 lines
921 B
Groovy
pipeline {
|
|
environment {
|
|
BUILDDIR_Q7 = 'build_q7'
|
|
BUILDDIR_LINUX = 'build_linux'
|
|
}
|
|
agent {
|
|
docker { image 'eive-obsw:d2'}
|
|
}
|
|
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 . -j'
|
|
}
|
|
}
|
|
}
|
|
stage('Unittests') {
|
|
steps {
|
|
dir(BUILDDIR_LINUX) {
|
|
sh 'cmake ..'
|
|
//to be used when unittests are merged...
|
|
//sh 'cmake --build -t eive-unittests . -j'
|
|
//sh './eive-unittests'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|