forked from PAWPAW-Mirror/lib_xua
Align with lib_agc Jenkinsfile regarding unit test operation
This commit is contained in:
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user