diff --git a/Jenkinsfile b/Jenkinsfile index 6dd1eaf..2ac9067 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,11 +22,15 @@ pipeline { } } - stage('Setup Python') { + stage('Setup Environment') { steps { sh ''' set -eu + // --------------------------------------------------------- + // uv + // --------------------------------------------------------- + if ! command -v uv >/dev/null 2>&1; then echo "uv not found — installing it..." @@ -43,12 +47,30 @@ pipeline { echo "Using:" uv --version + // --------------------------------------------------------- + // SQLite + // --------------------------------------------------------- + + if ! command -v sqlite3 >/dev/null 2>&1; then + echo "sqlite3 not found — installing it..." + + pkg install -y sqlite3 + else + echo "sqlite3 already installed." + fi + + sqlite3 --version + + // --------------------------------------------------------- + // Python environment + // --------------------------------------------------------- + rm -rf "${VENV}" echo "Creating virtual environment..." uv venv "${VENV}" - echo "Installing CI dependencies..." + echo "Installing CI Python dependencies..." uv pip install \ --python "${VENV}/bin/python" \ -r tools/requirements-ci.txt @@ -78,7 +100,7 @@ pipeline { conclusion: 'SUCCESS', name: 'Database Integrity', summary: 'All Ravenous databases passed integrity checks.', - text: 'SQLite integrity and foreign-key validation completed successfully.', + text: 'SQLite structural integrity and foreign-key validation completed successfully.', title: 'Database integrity successful' )