mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-25 22:13:24 +08:00
18 lines
474 B
Bash
18 lines
474 B
Bash
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# Simple way to configure test database from environment
|
|
|
|
# shellcheck shell=sh
|
|
|
|
# Database backend to use postgresql / mysql / mariadb
|
|
export CI_DATABASE="${1:-postgresql}"
|
|
|
|
# Database server configuration
|
|
export CI_DB_USER=weblate
|
|
export CI_DB_PASSWORD=weblate
|
|
export CI_DB_HOST=127.0.0.1
|
|
|
|
# Django settings module to use
|
|
export DJANGO_SETTINGS_MODULE=weblate.settings_test
|