File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ pipeline:
164
164
pull : true
165
165
group : test
166
166
environment :
167
+ PGHOST : pgsql
168
+ PGPORT : ' 5432'
169
+ PGUSER : postgres
170
+ PGPASSWORD : postgres
167
171
TAGS : bindata
168
172
GOPATH : /srv/app
169
173
commands :
Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ TEST_MYSQL_HOST ?= mysql:3306
34
34
TEST_MYSQL_DBNAME ?= testgitea
35
35
TEST_MYSQL_USERNAME ?= root
36
36
TEST_MYSQL_PASSWORD ?=
37
- TEST_PGSQL_HOST ?= pgsql:5432
38
- TEST_PGSQL_DBNAME ?= testgitea
39
- TEST_PGSQL_USERNAME ?= postgres
40
- TEST_PGSQL_PASSWORD ?= postgres
41
37
42
38
ifeq ($(OS ) , Windows_NT)
43
39
EXECUTABLE := gitea.exe
67
63
integrations* .test \
68
64
integrations/gitea-integration-pgsql/ integrations/gitea-integration-mysql/ integrations/gitea-integration-sqlite/ \
69
65
integrations/indexers-mysql/ integrations/indexers-pgsql integrations/indexers-sqlite \
70
- integrations/mysql.ini integrations/pgsql.ini
66
+ integrations/mysql.ini
71
67
72
68
.PHONY : fmt
73
69
fmt :
@@ -167,11 +163,6 @@ generate-ini:
167
163
-e ' s|{{TEST_MYSQL_USERNAME}}|${TEST_MYSQL_USERNAME}|g' \
168
164
-e ' s|{{TEST_MYSQL_PASSWORD}}|${TEST_MYSQL_PASSWORD}|g' \
169
165
integrations/mysql.ini.tmpl > integrations/mysql.ini
170
- sed -e ' s|{{TEST_PGSQL_HOST}}|${TEST_PGSQL_HOST}|g' \
171
- -e ' s|{{TEST_PGSQL_DBNAME}}|${TEST_PGSQL_DBNAME}|g' \
172
- -e ' s|{{TEST_PGSQL_USERNAME}}|${TEST_PGSQL_USERNAME}|g' \
173
- -e ' s|{{TEST_PGSQL_PASSWORD}}|${TEST_PGSQL_PASSWORD}|g' \
174
- integrations/pgsql.ini.tmpl > integrations/pgsql.ini
175
166
176
167
.PHONY : test-mysql
177
168
test-mysql : integrations.test generate-ini
Original file line number Diff line number Diff line change @@ -3,12 +3,8 @@ RUN_MODE = prod
3
3
4
4
[database]
5
5
DB_TYPE = postgres
6
- HOST = {{TEST_PGSQL_HOST}}
7
- NAME = {{TEST_PGSQL_DBNAME}}
8
- USER = {{TEST_PGSQL_USERNAME}}
9
- PASSWD = {{TEST_PGSQL_PASSWORD}}
6
+ NAME = testgitea
10
7
SSL_MODE = disable
11
- PATH = data/gitea.db
12
8
13
9
[indexer]
14
10
ISSUE_INDEXER_PATH = integrations/indexers-pgsql/issues.bleve
You can’t perform that action at this time.
0 commit comments