From 435445efe4ddec97428f2c77e5f39f4d2adb0359 Mon Sep 17 00:00:00 2001 From: Nicolas Droissart Date: Mon, 18 Jan 2021 19:42:34 +0100 Subject: [PATCH] :construction_worker: change working dir --- .circleci/config.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 09b80dd..7963469 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,10 +4,13 @@ jobs: build: docker: - image: circleci/python:3.9 + working_directory: ~/repo auth: username: $DOCKER_ID password: $DOCKER_PASSWORD - working_directory: ~/repo + environment: + FLASK_APP: ~/repo/autoapp.py + FLASK_DEBUG: 1 steps: - checkout - run: sudo chown -R circleci:circleci /usr/local/bin @@ -25,6 +28,12 @@ jobs: - run: command: pip install -r requirements/dev.txt --user name: Install requirements + - run: + command: pip install sqlalchemy --upgrade && pip install Flask-SQLAlchemy --upgrade + - run: + command: flask db upgrade + - run: + command: flask test - save_cache: key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} paths: