From c1dd591c775657f594dd8400bc72a31b517332a5 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Jan 2021 17:57:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20fix=20db=20connection=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3774b80..421a6ae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,17 +9,11 @@ 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: root - 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 @@ -29,9 +23,9 @@ jobs: # A basic unit of work in a run key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} - run: command: | - export FLASK_APP=autoapp.py - sudo pip install pipenv - pipenv install + python3 -m venv venv + . venv/bin/activate + pip install -r requirements/dev.txt - save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} paths: @@ -61,9 +55,6 @@ jobs: # A basic unit of work in a run - run: name: bd upgrade command: | - python3 -m venv venv - . venv/bin/activate - pip install -r requirements/dev.txt . venv/bin/activate sleep 1 flask db stamp head