fix: Entferne Emojis aus YAML für bessere Kompatibilität
- Alle Unicode-Emojis entfernt die YAML-Parser-Probleme verursachen - Cleaner Text-Output für stabilere Pipeline-Ausführung - Behalte vollständige Test-Funktionalität bei - 6 umfassende Test-Steps für gameadm Installation
This commit is contained in:
parent
d8bbc50117
commit
0f649a713b
|
|
@ -8,49 +8,49 @@ steps:
|
||||||
syntax_check:
|
syntax_check:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🔍 Syntax-Checks für gameadm"
|
- echo "Syntax-Checks für gameadm"
|
||||||
- apk add --no-cache bash curl git
|
- apk add --no-cache bash curl git
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
||||||
- echo "✅ Bash Syntax Check für gameadm"
|
- echo "Bash Syntax Check für gameadm"
|
||||||
- bash -n gameadm
|
- bash -n gameadm
|
||||||
- echo "✅ Bash Syntax Check für install.sh"
|
- echo "Bash Syntax Check für install.sh"
|
||||||
- bash -n install.sh
|
- bash -n install.sh
|
||||||
- echo "✅ Alle Syntax-Checks erfolgreich"
|
- echo "Alle Syntax-Checks erfolgreich"
|
||||||
|
|
||||||
# Installation Test (ohne root)
|
# Installation Test (ohne root)
|
||||||
install_test:
|
install_test:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🛠️ Installation Test für gameadm"
|
- echo "Installation Test für gameadm"
|
||||||
- apk add --no-cache bash curl wget git podman coreutils sudo
|
- apk add --no-cache bash curl wget git podman coreutils sudo
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
||||||
- chmod +x gameadm install.sh
|
- chmod +x gameadm install.sh
|
||||||
- echo "✅ Download erfolgreich"
|
- echo "Download erfolgreich"
|
||||||
- echo "🔧 Teste gameadm Funktionen (ohne Installation)"
|
- echo "Teste gameadm Funktionen ohne Installation"
|
||||||
- ./gameadm --help
|
- ./gameadm --help
|
||||||
- ./gameadm --version
|
- ./gameadm --version
|
||||||
- echo "✅ gameadm Basic-Tests erfolgreich"
|
- echo "gameadm Basic-Tests erfolgreich"
|
||||||
|
|
||||||
# Dependencies Check
|
# Dependencies Check
|
||||||
dependencies_check:
|
dependencies_check:
|
||||||
image: ubuntu:22.04
|
image: ubuntu:22.04
|
||||||
commands:
|
commands:
|
||||||
- echo "📦 Abhängigkeiten Test für verschiedene OS"
|
- echo "Abhängigkeiten Test für verschiedene OS"
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y curl wget git bash coreutils
|
- apt-get install -y curl wget git bash coreutils
|
||||||
- echo "✅ Ubuntu Dependencies Check erfolgreich"
|
- echo "Ubuntu Dependencies Check erfolgreich"
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
||||||
- chmod +x install.sh
|
- chmod +x install.sh
|
||||||
- echo "🔍 Teste OS Detection im Installer"
|
- echo "Teste OS Detection im Installer"
|
||||||
- bash -c "source install.sh && detect_os && echo 'OS Detection OK'"
|
- bash -c "source install.sh && detect_os && echo 'OS Detection OK'"
|
||||||
|
|
||||||
# Module Tests
|
# Module Tests
|
||||||
module_test:
|
module_test:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🎮 Module Tests für gameadm"
|
- echo "Module Tests für gameadm"
|
||||||
- apk add --no-cache bash curl git
|
- apk add --no-cache bash curl git
|
||||||
- mkdir -p /tmp/gameadm-test/modules
|
- mkdir -p /tmp/gameadm-test/modules
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o /tmp/gameadm-test/gameadm
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o /tmp/gameadm-test/gameadm
|
||||||
|
|
@ -59,53 +59,53 @@ steps:
|
||||||
- chmod +x /tmp/gameadm-test/gameadm
|
- chmod +x /tmp/gameadm-test/gameadm
|
||||||
- chmod +x /tmp/gameadm-test/modules/*.sh 2>/dev/null || true
|
- chmod +x /tmp/gameadm-test/modules/*.sh 2>/dev/null || true
|
||||||
- cd /tmp/gameadm-test
|
- cd /tmp/gameadm-test
|
||||||
- echo "✅ Module Download erfolgreich"
|
- echo "Module Download erfolgreich"
|
||||||
- echo "🔍 Teste Module Syntax"
|
- echo "Teste Module Syntax"
|
||||||
- for module in modules/*.sh; do test -f "$module" && bash -n "$module" && echo "Syntax OK for $module"; done
|
- for module in modules/*.sh; do test -f "$module" && bash -n "$module" && echo "Syntax OK for $module"; done
|
||||||
- echo "✅ Alle Module Tests erfolgreich"
|
- echo "Alle Module Tests erfolgreich"
|
||||||
|
|
||||||
# Security Check
|
# Security Check
|
||||||
security_check:
|
security_check:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🔒 Security Checks für gameadm"
|
- echo "Security Checks für gameadm"
|
||||||
- apk add --no-cache bash curl git grep
|
- apk add --no-cache bash curl git grep
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh
|
||||||
- echo "🔍 Prüfe auf gefährliche Befehle..."
|
- echo "Prüfe auf gefährliche Befehle..."
|
||||||
- "! grep -E '(rm -rf /|mkfs|dd if=|format)' gameadm install.sh || (echo 'Gefährliche Befehle gefunden' && exit 1)"
|
- "! grep -E '(rm -rf /|mkfs|dd if=|format)' gameadm install.sh || (echo 'Gefährliche Befehle gefunden' && exit 1)"
|
||||||
- echo "🔍 Prüfe set -euo pipefail..."
|
- echo "Prüfe set -euo pipefail..."
|
||||||
- grep -q "set -euo pipefail" gameadm && echo "✅ Fehlerbehandlung OK"
|
- grep -q "set -euo pipefail" gameadm && echo "Fehlerbehandlung OK"
|
||||||
- grep -q "set -euo pipefail" install.sh && echo "✅ Installer Fehlerbehandlung OK"
|
- grep -q "set -euo pipefail" install.sh && echo "Installer Fehlerbehandlung OK"
|
||||||
- echo "✅ Security Checks erfolgreich"
|
- echo "Security Checks erfolgreich"
|
||||||
|
|
||||||
# Integration Test
|
# Integration Test
|
||||||
integration_test:
|
integration_test:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🚀 Integration Test für gameadm"
|
- echo "Integration Test für gameadm"
|
||||||
- apk add --no-cache bash curl wget git podman coreutils sudo
|
- apk add --no-cache bash curl wget git podman coreutils sudo
|
||||||
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
- curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm
|
||||||
- chmod +x gameadm
|
- chmod +x gameadm
|
||||||
- echo "🔧 Teste gameadm Integration"
|
- echo "Teste gameadm Integration"
|
||||||
- ./gameadm --help | grep -q "gameadm - Modularer Game Server Administrator" && echo "✅ Help funktioniert"
|
- ./gameadm --help | grep -q "gameadm - Modularer Game Server Administrator" && echo "Help funktioniert"
|
||||||
- ./gameadm --version | grep -q "gameadm v" && echo "✅ Version funktioniert"
|
- ./gameadm --version | grep -q "gameadm v" && echo "Version funktioniert"
|
||||||
- ./gameadm list || echo "List command expected to fail (Module fehlen erwartet)"
|
- ./gameadm list || echo "List command expected to fail - Module fehlen erwartet"
|
||||||
- echo "✅ Integration Test erfolgreich"
|
- echo "Integration Test erfolgreich"
|
||||||
|
|
||||||
# Final Success Report
|
# Final Success Report
|
||||||
success_report:
|
success_report:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🎉 Alle gameadm CI/CD Tests erfolgreich!"
|
- echo "Alle gameadm CI/CD Tests erfolgreich!"
|
||||||
- echo "📊 Test-Zusammenfassung:"
|
- echo "Test-Zusammenfassung:"
|
||||||
- echo " ✅ Syntax-Checks: PASSED"
|
- echo " Syntax-Checks: PASSED"
|
||||||
- echo " ✅ Installation: PASSED"
|
- echo " Installation: PASSED"
|
||||||
- echo " ✅ Dependencies: PASSED"
|
- echo " Dependencies: PASSED"
|
||||||
- echo " ✅ Module Tests: PASSED"
|
- echo " Module Tests: PASSED"
|
||||||
- echo " ✅ Security: PASSED"
|
- echo " Security: PASSED"
|
||||||
- echo " ✅ Integration: PASSED"
|
- echo " Integration: PASSED"
|
||||||
- echo ""
|
- echo ""
|
||||||
- echo "🚀 gameadm ist bereit für Production!"
|
- echo "gameadm ist bereit für Production!"
|
||||||
- echo "📅 Test abgeschlossen: $(date)"
|
- echo "Test abgeschlossen: $(date)"
|
||||||
- echo "🐳 Podman Backend erfolgreich getestet"
|
- echo "Podman Backend erfolgreich getestet"
|
||||||
Loading…
Reference in New Issue