|
|
@ -9,11 +9,18 @@ jobs: # A basic unit of work in a run |
|
|
auth: |
|
|
auth: |
|
|
username: $DOCKERHUB_USERNAME |
|
|
username: $DOCKERHUB_USERNAME |
|
|
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference |
|
|
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/ |
|
|
# CircleCI PostgreSQL images available at: https://hub.docker.com/r/circleci/postgres/ |
|
|
- image: circleci/postgres:9.6.9-alpine |
|
|
- image: circleci/postgres:9.6.9-alpine |
|
|
auth: |
|
|
auth: |
|
|
username: $DOCKERHUB_USERNAME |
|
|
username: $DOCKERHUB_USERNAME |
|
|
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference |
|
|
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 |
|
|
steps: # steps that comprise the `build` job |
|
|
- checkout # check out source code to working directory |
|
|
- checkout # check out source code to working directory |
|
|
# - run: sudo chown -R circleci:circleci /usr/local/bin |
|
|
# - 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/python:3.9.1 |
|
|
- image: circleci/postgres:9.6.5 |
|
|
- image: circleci/postgres:9.6.5 |
|
|
environment: |
|
|
environment: |
|
|
POSTGRES_USER: myUsr |
|
|
|
|
|
POSTGRES_PASSOWRD: somePwd |
|
|
|
|
|
POSTGRES_DB: myUsr |
|
|
|
|
|
|
|
|
POSTGRES_USER: circle_test |
|
|
|
|
|
POSTGRES_PASSOWRD: pwd |
|
|
|
|
|
POSTGRES_DB: circle_test |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
@ -64,7 +71,7 @@ jobs: # A basic unit of work in a run |
|
|
CONDUIT_SECRET: $CONDUIT_SECRET |
|
|
CONDUIT_SECRET: $CONDUIT_SECRET |
|
|
FLASK_APP: autoapp.py |
|
|
FLASK_APP: autoapp.py |
|
|
FLASK_DEBUG: 1 |
|
|
FLASK_DEBUG: 1 |
|
|
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr |
|
|
|
|
|
|
|
|
DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test |
|
|
# - run: |
|
|
# - run: |
|
|
# name: flask test |
|
|
# name: flask test |
|
|
# command: | |
|
|
# command: | |
|
|
|