Skip to content

Commit bc9947c

Browse files
committed
Add password for postgres drone image (#1530)
Add password for postgres drone image Reviewed-on: https://gitea.com/xorm/xorm/pulls/1530
1 parent d874b64 commit bc9947c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.drone.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ steps:
8282
GO111MODULE: "on"
8383
GOPROXY: "https://goproxy.cn"
8484
commands:
85-
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -coverprofile=coverage4-1.txt -covermode=atomic"
86-
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -cache=true -coverprofile=coverage4-2.txt -covermode=atomic"
85+
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:postgres@pgsql/xorm_test?sslmode=disable\" -coverprofile=coverage4-1.txt -covermode=atomic"
86+
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:postgres@pgsql/xorm_test?sslmode=disable\" -cache=true -coverprofile=coverage4-2.txt -covermode=atomic"
8787
when:
8888
event:
8989
- push
@@ -96,8 +96,8 @@ steps:
9696
GO111MODULE: "on"
9797
GOPROXY: "https://goproxy.cn"
9898
commands:
99-
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -coverprofile=coverage5-1.txt -covermode=atomic"
100-
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -cache=true -coverprofile=coverage5-2.txt -covermode=atomic"
99+
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:postgres@pgsql/xorm_test?sslmode=disable\" -schema=xorm -coverprofile=coverage5-1.txt -covermode=atomic"
100+
- "go test -v -race -db=\"postgres\" -conn_str=\"postgres://postgres:postgres@pgsql/xorm_test?sslmode=disable\" -schema=xorm -cache=true -coverprofile=coverage5-2.txt -covermode=atomic"
101101
when:
102102
event:
103103
- push
@@ -175,6 +175,7 @@ services:
175175
environment:
176176
POSTGRES_DB: xorm_test
177177
POSTGRES_USER: postgres
178+
POSTGRES_PASSWORD: postgres
178179
when:
179180
event:
180181
- push

0 commit comments

Comments
 (0)