forked from PAWPAW-Mirror/lib_xua
Add tools for UT
This commit is contained in:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -11,6 +11,12 @@ pipeline {
|
|||||||
options {
|
options {
|
||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
}
|
}
|
||||||
|
environment {
|
||||||
|
REPO = 'sw_usb_audio'
|
||||||
|
VIEW = getViewName(REPO)
|
||||||
|
TOOLS_VERSION = "15.2.1"
|
||||||
|
XTAGCTL_VERSION = "v2.0.0"
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Basic tests') {
|
stage('Basic tests') {
|
||||||
agent {
|
agent {
|
||||||
@@ -45,16 +51,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Unity tests') {
|
stage('Unity tests') {
|
||||||
steps {
|
steps {
|
||||||
dir("${REPO}") {
|
dir("${REPO}/test/xua_unit_tests") {
|
||||||
dir('tests') {
|
withTools("${env.TOOLS_VERSION}") {
|
||||||
dir('xua_unit_tests') {
|
withVenv {
|
||||||
withVenv {
|
withEnv(["XMOS_CMAKE_PATH=${WORKSPACE}/xcommon_cmake"]) {
|
||||||
withEnv(["XMOS_CMAKE_PATH=${WORKSPACE}/xcommon_cmake"]) {
|
sh "cmake -G 'Unix Makefiles' -B build"
|
||||||
sh "cmake -G 'Unix Makefiles' -B build"
|
sh 'xmake -C build -j'
|
||||||
sh 'xmake -C build -j'
|
runPython("pytest -s --junitxml=pytest_unity.xml")
|
||||||
runPython("pytest -s --junitxml=pytest_unity.xml")
|
junit "pytest_unity.xml"
|
||||||
junit "pytest_unity.xml"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user