diff --git a/.circleci/config.yml b/.circleci/config.yml index 421a6ae..29419e9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,11 +9,18 @@ jobs: # A basic unit of work in a run auth: username: $DOCKERHUB_USERNAME password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + environment: # environment variables for primary container + PIPENV_VENV_IN_PROJECT: true + DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable # CircleCI PostgreSQL images available at: https://hub.docker.com/r/circleci/postgres/ - image: circleci/postgres:9.6.9-alpine auth: username: $DOCKERHUB_USERNAME password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + environment: # environment variables for the Postgres container. + POSTGRES_USER: circle_test + POSTGRES_PASSOWRD: pwd + POSTGRES_DB: circle_test steps: # steps that comprise the `build` job - checkout # check out source code to working directory # - run: sudo chown -R circleci:circleci /usr/local/bin @@ -44,9 +51,9 @@ jobs: # A basic unit of work in a run - image: circleci/python:3.9.1 - image: circleci/postgres:9.6.5 environment: - POSTGRES_USER: myUsr - POSTGRES_PASSOWRD: somePwd - POSTGRES_DB: myUsr + POSTGRES_USER: circle_test + POSTGRES_PASSOWRD: pwd + POSTGRES_DB: circle_test steps: - checkout @@ -64,7 +71,7 @@ jobs: # A basic unit of work in a run CONDUIT_SECRET: $CONDUIT_SECRET FLASK_APP: autoapp.py FLASK_DEBUG: 1 - DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr + DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test # - run: # name: flask test # command: |