weblate/ci/prepare-database
Kartik Ohri 12d27937f1
Some checks failed
API / API Lint (push) Waiting to run
Documentation / update-snippets (push) Waiting to run
Documentation / list-languages (push) Blocked by required conditions
Documentation / Sphinx (push) Blocked by required conditions
FOSSA / fossa-scan (push) Waiting to run
macOS / macos (push) Waiting to run
Migrations / postgresql (push) Waiting to run
mypy / mypy (push) Waiting to run
Pre-commit check / pre-commit (push) Waiting to run
pylint check / pylint (push) Waiting to run
Rundev / Test development Docker (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Distribution / Build packages (push) Waiting to run
Distribution / Lint packages (push) Blocked by required conditions
Distribution / Build release notes (push) Waiting to run
Distribution / Publish to PyPI (push) Blocked by required conditions
Distribution / Publish to GitHub (push) Blocked by required conditions
Test / py3.12, latest deps (push) Waiting to run
Test / py3.12, minimal deps (push) Waiting to run
Test / py3.13, latest deps (push) Waiting to run
Test / py3.14, latest deps (push) Waiting to run
Test / py3.14, edge deps (push) Waiting to run
Linkcheck / Linkcheck (push) Has been cancelled
jsonschema update / jsonschema-update (push) Has been cancelled
uv lock update / uv-update (push) Has been cancelled
ci(services): use service containers instead of custom docker compose files (#18243)
* ci(services): use service containers instead of custom docker compose files

* remove redis from test matrix

* simplify ci test matrix

* remove redundant CI_DATABASE checks

* remove CI_DATABASE variable

* CI_DATABASE is needed for migrations workflow

* Update .github/workflows/migrations.yml

* Update .github/workflows/migrations.yml

---------

Co-authored-by: Michal Čihař <michal@cihar.com>
2026-02-27 12:52:18 +01:00

19 lines
351 B
Bash
Executable file

#!/bin/sh
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
. ci/lib.sh
set -e
cleanup_database
if [ -n "$CI_DB_PASSWORD" ]; then
export PGPASSWORD="$CI_DB_PASSWORD"
fi
if [ -n "$CI_DB_PORT" ]; then
export PGPORT="$CI_DB_PORT"
fi
psql --host="$CI_DB_HOST" -c 'SELECT version();' -U postgres