aboutsummaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-09-13 09:03:20 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-09-13 14:03:20 +0800
commit377cd1ae387bbd4659fddf49d4ef719510454547 (patch)
tree12918da506a8305a59f013e6b1a808a9d73c8216 /integrations
parent005900baead84d02b276a2179dee10f00d4d251b (diff)
downloadgitea-377cd1ae387bbd4659fddf49d4ef719510454547.tar.gz
gitea-377cd1ae387bbd4659fddf49d4ef719510454547.zip
Allow changing integration test database connection using env variables (#2484)
Diffstat (limited to 'integrations')
-rw-r--r--integrations/mysql.ini.tmpl (renamed from integrations/mysql.ini)8
-rw-r--r--integrations/pgsql.ini.tmpl (renamed from integrations/pgsql.ini)8
2 files changed, 8 insertions, 8 deletions
diff --git a/integrations/mysql.ini b/integrations/mysql.ini.tmpl
index 9d3d6dfce2..1023617754 100644
--- a/integrations/mysql.ini
+++ b/integrations/mysql.ini.tmpl
@@ -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
diff --git a/integrations/pgsql.ini b/integrations/pgsql.ini.tmpl
index 859e3250c1..fa1fd6aa12 100644
--- a/integrations/pgsql.ini
+++ b/integrations/pgsql.ini.tmpl
@@ -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