Skip to content

Commit

Permalink
Merge pull request #624 from xmos/fix/Jenkinsfile
Browse files Browse the repository at this point in the history
all tests now run nightly
  • Loading branch information
keithm-xmos authored Jun 8, 2023
2 parents 2286f11 + c9191b0 commit fd51459
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ pipeline {
}
stages {
stage('Checkout') {
when {
expression { params.NIGHTLY_TEST_ONLY == true }
}
steps {
checkout scm
sh 'git submodule update --init --recursive --depth 1 --jobs \$(nproc)'
}
}
stage('Build applications and firmware') {
when {
expression { params.NIGHTLY_TEST_ONLY == true }
}
steps {
script {
uid = sh(returnStdout: true, script: 'id -u').trim()
Expand All @@ -54,6 +60,9 @@ pipeline {
}
}
stage('Create virtual environment') {
when {
expression { params.NIGHTLY_TEST_ONLY == true }
}
steps {
// Create venv
sh "pyenv install -s $PYTHON_VERSION"
Expand All @@ -66,6 +75,9 @@ pipeline {
}
}
stage('Cleanup xtagctl') {
when {
expression { params.NIGHTLY_TEST_ONLY == true }
}
steps {
// Cleanup any xtagctl cruft from previous failed runs
withTools(params.TOOLS_VERSION) {
Expand All @@ -77,6 +89,9 @@ pipeline {
}
}
stage('Run FreeRTOS examples') {
when {
expression { params.NIGHTLY_TEST_ONLY == true }
}
steps {
withTools(params.TOOLS_VERSION) {
withVenv {
Expand Down

0 comments on commit fd51459

Please sign in to comment.