Adds testcase for PR policy checks
sandbox/pipeline/head There was a failure building this commit
sandbox/pipeline/pr-main There was a failure building this commit

This commit is contained in:
torsten committed 2026-08-04 19:09:13 +02:00
1 parent 2d681d6c2d
commit 6d986b8967
6 files changed
+187 -3

No files matched your search

Vendored
+39 -3
View File
@@ -1,23 +1,59 @@
pipeline {
agent any
agent {
dockerfile {
filename 'Dockerfile.ci'
reuseNode true
}
}
options {
skipDefaultCheckout()
timestamps()
disableConcurrentBuilds()
}
environment {
BUILD_DIR = "build"
CHANGE_TARGET = "${env.CHANGE_TARGET ?: 'origin/main'}"
}
stages {
stage('Checkout') {
steps {
checkout scm
sh 'git fetch --all --prune'
sh 'git submodule update --init --recursive || true'
}
}
stage('Policy Checks') {
steps {
sh 'python3 ci/check_pr_policies.py'
}
}
stage('Configure') {
steps {
sh 'cmake -S . -B ${BUILD_DIR} -G Ninja -DCMAKE_BUILD_TYPE=Debug'
}
}
stage('Build') {
steps {
sh 'echo Build works'
sh 'cmake --build ${BUILD_DIR} --parallel'
}
}
stage('Test') {
steps {
sh 'echo Tests work'
sh 'ctest --test-dir ${BUILD_DIR} --output-on-failure'
}
}
}
post {
always {
cleanWs deleteDirs: true, disableDeferredWipeout: true
}
}
}