Skip to content

Commit

Permalink
Update envfile_testing Make command #520
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <jyang@nexb.com>
  • Loading branch information
JonoYang committed Aug 7, 2024
1 parent ccb6e1c commit 10d362b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ envfile_testing:
@if test -f ${ENV_FILE}; then echo ".env file exists already"; exit 1; fi
@mkdir -p $(shell dirname ${ENV_FILE}) && touch ${ENV_FILE}
@echo SECRET_KEY=\"${GET_SECRET_KEY}\" >> ${ENV_FILE}
@echo SCANCODEIO_DB_PORT=\"5433\" >> ${ENV_FILE}
@echo PACKAGEDB_DB_HOST=\"packagedb\" >> ${ENV_FILE}

isort:
@echo "-> Apply isort changes to ensure proper imports ordering"
Expand Down
20 changes: 11 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@

resources:
containers:
- container: postgres
image: postgres
env:
POSTGRES_DB: packagedb
POSTGRES_USER: packagedb
POSTGRES_PASSWORD: packagedb
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
ports:
- 5432:5432
- container: packagedb
image: postgres:13
env:
POSTGRES_USER: packagedb
POSTGRES_PASSWORD: packagedb
ports:
- 5432:5432

jobs:

- template: etc/ci/azure-posix.yml
services:
postgres: postgres
parameters:
job_name: ubuntu20_cpython
image_name: ubuntu-20.04
Expand All @@ -28,6 +28,8 @@ jobs:
all: make test

- template: etc/ci/azure-posix.yml
services:
postgres: postgres
parameters:
job_name: ubuntu22_cpython
image_name: ubuntu-22.04
Expand Down

0 comments on commit 10d362b

Please sign in to comment.