Skip to content

Commit cdafdb8

Browse files
committed
Update envfile_testing Make command #520
Signed-off-by: Jono Yang <[email protected]>
1 parent ccb6e1c commit cdafdb8

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ envfile_testing:
5555
@if test -f ${ENV_FILE}; then echo ".env file exists already"; exit 1; fi
5656
@mkdir -p $(shell dirname ${ENV_FILE}) && touch ${ENV_FILE}
5757
@echo SECRET_KEY=\"${GET_SECRET_KEY}\" >> ${ENV_FILE}
58-
@echo SCANCODEIO_DB_PORT=\"5433\" >> ${ENV_FILE}
58+
@echo PACKAGEDB_DB_HOST=\"packagedb\" >> ${ENV_FILE}
5959

6060
isort:
6161
@echo "-> Apply isort changes to ensure proper imports ordering"

azure-pipelines.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
resources:
99
containers:
10-
- container: postgres
11-
image: postgres
12-
env:
13-
POSTGRES_DB: packagedb
14-
POSTGRES_USER: packagedb
15-
POSTGRES_PASSWORD: packagedb
16-
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
17-
ports:
18-
- 5432:5432
10+
- container: packagedb
11+
image: postgres:13
12+
env:
13+
POSTGRES_USER: packagedb
14+
POSTGRES_PASSWORD: packagedb
15+
ports:
16+
- 5432:5432
1917

2018
jobs:
2119

2220
- template: etc/ci/azure-posix.yml
21+
services:
22+
postgres: postgres
2323
parameters:
2424
job_name: ubuntu20_cpython
2525
image_name: ubuntu-20.04
@@ -28,6 +28,8 @@ jobs:
2828
all: make test
2929

3030
- template: etc/ci/azure-posix.yml
31+
services:
32+
postgres: postgres
3133
parameters:
3234
job_name: ubuntu22_cpython
3335
image_name: ubuntu-22.04

etc/ci/azure-posix.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
test_suite_label: ${{ tsuite.key }}
1919
test_suite: ${{ tsuite.value }}
2020

21+
services:
22+
packagedb: packagedb
23+
2124
steps:
2225
- checkout: self
2326
fetchDepth: 10

0 commit comments

Comments
 (0)