1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Allow changing integration test database connection using env variables (#2484)

This commit is contained in:
Lauris BH
2017-09-13 09:03:20 +03:00
committed by Lunny Xiao
parent 005900baea
commit 377cd1ae38
4 changed files with 30 additions and 10 deletions

View File

@@ -3,10 +3,10 @@ RUN_MODE = prod
[database]
DB_TYPE = mysql
HOST = mysql:3306
NAME = testgitea
USER = root
PASSWD =
HOST = {{TEST_MYSQL_HOST}}
NAME = {{TEST_MYSQL_DBNAME}}
USER = {{TEST_MYSQL_USERNAME}}
PASSWD = {{TEST_MYSQL_PASSWORD}}
SSL_MODE = disable
PATH = data/gitea.db

View File

@@ -3,10 +3,10 @@ RUN_MODE = prod
[database]
DB_TYPE = postgres
HOST = pgsql:5432
NAME = testgitea
USER = postgres
PASSWD = postgres
HOST = {{TEST_PGSQL_HOST}}
NAME = {{TEST_PGSQL_DBNAME}}
USER = {{TEST_PGSQL_USERNAME}}
PASSWD = {{TEST_PGSQL_PASSWORD}}
SSL_MODE = disable
PATH = data/gitea.db