Browse Source

❤️ fix db connection 12

pull/6/merge
Pierre 6 years ago
parent
commit
5f17ed4f4b
  1. 8
      .circleci/config.yml

8
.circleci/config.yml

@ -2,7 +2,7 @@ version: 2 # use CircleCI 2.0
jobs: # A basic unit of work in a run jobs: # A basic unit of work in a run
build: # runs not using Workflows must have a `build` job as entry point build: # runs not using Workflows must have a `build` job as entry point
# directory where steps are run # directory where steps are run
# working_directory: ~/circleci-demo-python-django
working_directory: ~/circleci-demo-python-django
docker: # run the steps with Docker docker: # run the steps with Docker
# CircleCI Python images available at: https://hub.docker.com/r/circleci/python/ # CircleCI Python images available at: https://hub.docker.com/r/circleci/python/
- image: circleci/python:3.9.1 - image: circleci/python:3.9.1
@ -21,7 +21,6 @@ jobs: # A basic unit of work in a run
POSTGRES_USER: circle_test POSTGRES_USER: circle_test
POSTGRES_PASSOWRD: pwd POSTGRES_PASSOWRD: pwd
POSTGRES_DB: circle_test POSTGRES_DB: circle_test
working_directory: ~/repo
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
@ -58,7 +57,7 @@ jobs: # A basic unit of work in a run
POSTGRES_USER: circle_test POSTGRES_USER: circle_test
POSTGRES_PASSOWRD: pwd POSTGRES_PASSOWRD: pwd
POSTGRES_DB: circle_test POSTGRES_DB: circle_test
working_directory: ~/repo
working_directory: ~/circleci-demo-python-django
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -66,7 +65,7 @@ jobs: # A basic unit of work in a run
- run: - run:
name: bd upgrade name: bd upgrade
command: | command: |
source venv/bin/activate
. venv/bin/activate
sleep 1 sleep 1
flask db upgrade flask db upgrade
environment: environment:
@ -92,6 +91,7 @@ jobs: # A basic unit of work in a run
heroku: heroku:
docker: docker:
- image: buildpack-deps:trusty - image: buildpack-deps:trusty
working_directory: ~/circleci-demo-python-django
steps: steps:
- checkout - checkout

Loading…
Cancel
Save