diff --git a/Jenkinsfile b/Jenkinsfile index 2ac9067..c354f17 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,65 +23,63 @@ pipeline { } stage('Setup Environment') { - steps { - sh ''' - set -eu + steps { + sh ''' + set -eu - // --------------------------------------------------------- - // uv - // --------------------------------------------------------- + # --------------------------------------------------------- + # uv + # --------------------------------------------------------- - if ! command -v uv >/dev/null 2>&1; then - echo "uv not found — installing it..." + if ! command -v uv >/dev/null 2>&1; then + echo "uv not found — installing it..." - if ! command -v cargo-binstall >/dev/null 2>&1; then - echo "cargo-binstall not found — installing it..." - cargo install cargo-binstall - fi + if ! command -v cargo-binstall >/dev/null 2>&1; then + echo "cargo-binstall not found — installing it..." + cargo install cargo-binstall + fi - cargo binstall --no-confirm uv - else - echo "uv already installed." - fi + cargo binstall --no-confirm uv + else + echo "uv already installed." + fi - echo "Using:" - uv --version + echo "Using:" + uv --version - // --------------------------------------------------------- - // SQLite - // --------------------------------------------------------- + # --------------------------------------------------------- + # SQLite + # --------------------------------------------------------- - if ! command -v sqlite3 >/dev/null 2>&1; then - echo "sqlite3 not found — installing it..." + 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 - pkg install -y sqlite3 - else - echo "sqlite3 already installed." - fi + sqlite3 --version - sqlite3 --version + # --------------------------------------------------------- + # Python environment + # --------------------------------------------------------- - // --------------------------------------------------------- - // Python environment - // --------------------------------------------------------- + rm -rf "${VENV}" - rm -rf "${VENV}" + echo "Creating virtual environment..." + uv venv "${VENV}" - echo "Creating virtual environment..." - uv venv "${VENV}" - - echo "Installing CI Python dependencies..." - uv pip install \ - --python "${VENV}/bin/python" \ - -r tools/requirements-ci.txt - - echo - echo "Python:" - "${VENV}/bin/python" --version - ''' - } - } + echo "Installing CI Python dependencies..." + uv pip install \ + --python "${VENV}/bin/python" \ + -r tools/requirements-ci.txt + echo + echo "Python:" + "${VENV}/bin/python" --version + ''' + } +} stage('Check Database Integrity') { steps { sh '''