Files
Cozypaw-Hospital/Jenkinsfile
T
Steven Wroblewski fb4434a537
Cozypaw Hospital/pipeline/head There was a failure building this commit
chore(ci): add Jenkins pipeline with headless GUT test runner
Downloads Godot 4.6.2 on first run, caches in /tmp, runs all 231 unit
tests headless on every push via Gitea webhook.

Also updates development-plan.md: mark sprints 0-22 complete, document
scope extensions, remove iOS references.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 13:09:26 +02:00

47 lines
1.2 KiB
Groovy

pipeline {
agent any
environment {
GODOT_VERSION = '4.6.2-stable'
GODOT_BIN = '/tmp/godot_ci/Godot_v4.6.2-stable_linux.x86_64'
}
stages {
stage('Godot Setup') {
steps {
sh '''
if [ ! -x "$GODOT_BIN" ]; then
mkdir -p /tmp/godot_ci
wget -q -O /tmp/godot_ci/godot.zip \
"https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}/Godot_v${GODOT_VERSION}_linux.x86_64.zip"
unzip -o /tmp/godot_ci/godot.zip -d /tmp/godot_ci/
chmod +x "$GODOT_BIN"
fi
'''
}
}
stage('Import Assets') {
steps {
// Godot must import assets before tests can run
sh '$GODOT_BIN --headless --import || true'
}
}
stage('Unit Tests') {
steps {
sh '$GODOT_BIN --headless -s res://addons/gut/gut_cmdln.gd -gdir=res://test/ -gexit'
}
}
}
post {
success {
echo '✅ All tests passed'
}
failure {
echo '❌ Tests failed'
}
}
}