From 2dcb7be876686bff6e5ba066da7d9da208a2af97 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Wed, 7 Aug 2024 14:03:03 -0700 Subject: [PATCH] Update envfile_testing Make command #520 Signed-off-by: Jono Yang --- Makefile | 2 +- azure-pipelines.yml | 10 ++++------ etc/ci/azure-posix.yml | 3 +++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 691ba6fc..70564ccf 100644 --- a/Makefile +++ b/Makefile @@ -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" diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 55430a9c..b1ebc99c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,13 +7,11 @@ resources: containers: - - container: postgres - image: postgres + - container: packagedb + image: postgres:13 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" + POSTGRES_USER: 'packagedb' + POSTGRES_PASSWORD: 'packagedb' ports: - 5432:5432 diff --git a/etc/ci/azure-posix.yml b/etc/ci/azure-posix.yml index e626e032..1efd8298 100644 --- a/etc/ci/azure-posix.yml +++ b/etc/ci/azure-posix.yml @@ -18,6 +18,9 @@ jobs: test_suite_label: ${{ tsuite.key }} test_suite: ${{ tsuite.value }} + services: + packagedb: packagedb + steps: - checkout: self fetchDepth: 10