Browse Source

👷 configure db

dependabot/pip/requirements/sqlalchemy-1.3.0
lamya-rey 5 years ago
parent
commit
15f206e37c
  1. 16
      .circleci/config.yml

16
.circleci/config.yml

@ -28,9 +28,9 @@ jobs:
- image: circleci/python:latest - image: circleci/python:latest
- image: circleci/postgres:9.6.2-alpine - image: circleci/postgres:9.6.2-alpine
environment: environment:
POSTGRES_USER: postgres
POSTGRES_USER: myUser
POSTGRES_DB: postgres POSTGRES_DB: postgres
POSTGRES_PASSWORD: root
POSTGRES_PASSWORD: somePwd
working_directory: ~/repo working_directory: ~/repo
steps: steps:
- checkout - checkout
@ -45,11 +45,11 @@ jobs:
environment: environment:
CONDUIT_SECRET: 'something-really-secret' CONDUIT_SECRET: 'something-really-secret'
FLASK_APP: /home/circleci/repo/autoapp.py FLASK_APP: /home/circleci/repo/autoapp.py
DATABASE_URL: postgresql://postgres:root@localhost:5432/postgres
DATABASE_URL: postgresql://myUser:somePwd@localhost:5432/postgres
FLASK_DEBUG: 1 FLASK_DEBUG: 1
POSTGRES_USER: postgres
POSTGRES_USER: myUser
POSTGRES_DB: postgres POSTGRES_DB: postgres
POSTGRES_PASSWORD: root
POSTGRES_PASSWORD: somePwd
POSTGRES_PORT: 5432 POSTGRES_PORT: 5432
- run: - run:
name: db test name: db test
@ -60,11 +60,11 @@ jobs:
environment: environment:
CONDUIT_SECRET: 'something-really-secret' CONDUIT_SECRET: 'something-really-secret'
FLASK_APP: /home/circleci/repo/autoapp.py FLASK_APP: /home/circleci/repo/autoapp.py
DATABASE_URL: postgresql://postgres:root@localhost:5432/postgres
DATABASE_URL: postgresql://myUser:somePwd@localhost:5432/postgres
FLASK_DEBUG: 1 FLASK_DEBUG: 1
POSTGRES_USER: postgres
POSTGRES_USER: myUser
POSTGRES_DB: postgres POSTGRES_DB: postgres
POSTGRES_PASSWORD: root
POSTGRES_PASSWORD: somePwd
POSTGRES_PORT: 5432 POSTGRES_PORT: 5432
deploy-heroku: deploy-heroku:

Loading…
Cancel
Save