Skip to content

Commit 2a8056c

Browse files
committed
Add wait step to CI for postgres
1 parent 1aea374 commit 2a8056c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include:
33

44

55
services:
6-
- postgres
6+
- postgres:13
77

88
variables:
99
POSTGRES_DB: molformula
@@ -27,6 +27,9 @@ test-source:
2727
- k8s
2828
- rzr
2929
- codebuilds
30+
before_script:
31+
- apt-get update && apt-get install -y wait-for-it
32+
- wait-for-it -t 20 postgres:5432
3033
script:
3134
- python3 -V # Print out python version for debugging
3235
- python3 -m pip install --upgrade pip

0 commit comments

Comments
 (0)