Skip to content

Commit 2ca5430

Browse files
committed
Fix CircleCI ENV var name
1 parent 8d9e984 commit 2ca5430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
POSTGRESQL_HOST: 127.0.0.1
2020
POSTGRESQL_DB: library
2121
POSTGRESQL_ALLOW_EMPTY_PASSWORD: true
22-
DB_USER: $DB_USER
22+
POSTGRESQL_USER: $DB_USERNAME
2323
POSTGRES_PASSWORD: $DB_PASSWORD
2424
# restart: on-failure # Restart the container if it exits due to an error
2525
steps:
@@ -41,9 +41,9 @@ jobs:
4141
- run:
4242
name: Prepare database for tests
4343
command: |
44-
psql -h localhost -U postgres -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASSWORD' ;"
45-
psql -h localhost -U postgres -c "CREATE DATABASE library WITH OWNER = $DB_USER ;"
46-
psql -h localhost -U $DB_USER -w -d library < library.sql
44+
psql -h localhost -U postgres -c "CREATE USER $DB_USERNAME WITH PASSWORD '$DB_PASSWORD' ;"
45+
psql -h localhost -U postgres -c "CREATE DATABASE library WITH OWNER = $DB_USERNAME ;"
46+
psql -h localhost -U $DB_USERNAME -w -d library < library.sql
4747
#- run: pipenv run pytest -v Needs /etc/hypercorn.toml
4848
- run:
4949
name: Build docker image

0 commit comments

Comments
 (0)