Align with lib_agc Jenkinsfile regarding unit test operation

This commit is contained in:
mbanth
2021-05-20 15:58:30 +01:00
parent c0dade0156
commit 0e27c7f2ff

21
Jenkinsfile vendored
View File

@@ -40,11 +40,11 @@ pipeline {
dir("${REPO}") {
dir('tests') {
dir('xua_unit_tests') {
viewEnv() {
withVenv {
runWaf('.', "configure clean build --target=xcore200")
runWaf('.', "configure clean build --target=xcoreai")
stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, '
withVenv {
runWaf('.', "configure clean build --target=xcore200")
runWaf('.', "configure clean build --target=xcoreai")
stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, '
viewEnv() {
runPython("TARGET=XCORE200 pytest -n 1")
}
}
@@ -59,6 +59,9 @@ pipeline {
agent {
label 'xcore.ai-explorer'
}
options {
skipDefaultCheckout()
}
stages{
stage('Get View') {
steps {
@@ -70,10 +73,10 @@ pipeline {
dir("${REPO}") {
dir('tests') {
dir('xua_unit_tests') {
viewEnv() {
withVenv {
unstash 'xua_unit_tests'
runPython("TARGET=XCOREAI pytest -n 1 --junitxml pytest_result.xml")
withVenv {
unstash 'xua_unit_tests'
viewEnv() {
runPython("TARGET=XCOREAI pytest -s")
}
}
}