forked from PAWPAW-Mirror/lib_xua
Align with lib_agc Jenkinsfile regarding unit test operation
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -40,11 +40,11 @@ pipeline {
|
|||||||
dir("${REPO}") {
|
dir("${REPO}") {
|
||||||
dir('tests') {
|
dir('tests') {
|
||||||
dir('xua_unit_tests') {
|
dir('xua_unit_tests') {
|
||||||
viewEnv() {
|
|
||||||
withVenv {
|
withVenv {
|
||||||
runWaf('.', "configure clean build --target=xcore200")
|
runWaf('.', "configure clean build --target=xcore200")
|
||||||
runWaf('.', "configure clean build --target=xcoreai")
|
runWaf('.', "configure clean build --target=xcoreai")
|
||||||
stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, '
|
stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, '
|
||||||
|
viewEnv() {
|
||||||
runPython("TARGET=XCORE200 pytest -n 1")
|
runPython("TARGET=XCORE200 pytest -n 1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,6 +59,9 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
label 'xcore.ai-explorer'
|
label 'xcore.ai-explorer'
|
||||||
}
|
}
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout()
|
||||||
|
}
|
||||||
stages{
|
stages{
|
||||||
stage('Get View') {
|
stage('Get View') {
|
||||||
steps {
|
steps {
|
||||||
@@ -70,10 +73,10 @@ pipeline {
|
|||||||
dir("${REPO}") {
|
dir("${REPO}") {
|
||||||
dir('tests') {
|
dir('tests') {
|
||||||
dir('xua_unit_tests') {
|
dir('xua_unit_tests') {
|
||||||
viewEnv() {
|
|
||||||
withVenv {
|
withVenv {
|
||||||
unstash 'xua_unit_tests'
|
unstash 'xua_unit_tests'
|
||||||
runPython("TARGET=XCOREAI pytest -n 1 --junitxml pytest_result.xml")
|
viewEnv() {
|
||||||
|
runPython("TARGET=XCOREAI pytest -s")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user