Add tools for UT

This commit is contained in:
Ed
2024-04-19 09:48:25 +01:00
parent 82f7649079
commit aecffab0c6

12
Jenkinsfile vendored
View File

@@ -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,9 +51,8 @@ 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"
@@ -62,7 +67,6 @@ pipeline {
} }
} }
} }
}
stage('xCORE builds') { stage('xCORE builds') {
steps { steps {
dir("${REPO}") { dir("${REPO}") {