From a94e583823241ed364e5fac13ebc7e7c4493208b Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Jan 2021 17:32:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20fix=20db=20connection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 852db64..3775a58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,28 +61,31 @@ jobs: # A basic unit of work in a run - run: name: bd upgrade command: | - pip install --user Flask - flask db init + . venv/bin/activate + sleep 1 + flask db stamp head flask db migrate flask db upgrade - flask test environment: CONDUIT_SECRET: $CONDUIT_SECRET FLASK_APP: autoapp.py FLASK_DEBUG: 1 DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr - - run: - name: flask test - command: | - . venv/bin/activate - sleep 1 - flask test - environment: - CONDUIT_SECRET: 'something-really-secret' - FLASK_APP: autoapp.py - FLASK_DEBUG: 1 - DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr - + # - run: + # name: flask test + # command: | + # . venv/bin/activate + # sleep 1 + # flask test + # environment: + # CONDUIT_SECRET: 'something-really-secret' + # FLASK_APP: autoapp.py + # FLASK_DEBUG: 1 + # DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr + - save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key + key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + paths: + - "venv" heroku: docker: - image: buildpack-deps:trusty @@ -118,9 +121,9 @@ workflows: build-test: jobs: - build - # - test: - # requires: - # - build + - test: + requires: + - build - heroku: requires: - build