Update Jenkinsfile
Database Integrity At least one Ravenous database failed validation.
Ravenous/ravenous_databases/pipeline/head There was a failure building this commit
Details
Database Integrity At least one Ravenous database failed validation.
Ravenous/ravenous_databases/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
185f9b92cf
commit
d5d41d930e
|
|
@ -14,7 +14,7 @@ pipeline {
|
|||
checkout scm
|
||||
|
||||
sh '''
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
git submodule sync --recursive
|
||||
git submodule update --init --recursive
|
||||
|
|
@ -23,68 +23,76 @@ 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..."
|
||||
pkg install -y sqlite3
|
||||
else
|
||||
echo "sqlite3 already installed."
|
||||
fi
|
||||
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
|
||||
echo "SQLite:"
|
||||
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 "Installing CI Python dependencies..."
|
||||
uv pip install \
|
||||
--python "${VENV}/bin/python" \
|
||||
-r tools/requirements-ci.txt
|
||||
|
||||
echo
|
||||
echo "Python:"
|
||||
"${VENV}/bin/python" --version
|
||||
|
||||
echo
|
||||
echo "Environment ready."
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
echo
|
||||
echo "Python:"
|
||||
"${VENV}/bin/python" --version
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Check Database Integrity') {
|
||||
steps {
|
||||
sh '''
|
||||
set -eu
|
||||
|
||||
echo "Running Ravenous database integrity checks..."
|
||||
echo
|
||||
|
||||
"${VENV}/bin/python" \
|
||||
tools/check_databases.py
|
||||
'''
|
||||
|
|
@ -131,6 +139,7 @@ pipeline {
|
|||
|
||||
always {
|
||||
sh '''
|
||||
echo "Cleaning CI environment..."
|
||||
rm -rf .venv
|
||||
'''
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue